Open GSSBilly opened 5 years ago
[使用有意義、符合語意命名]
https://github.com/Harudas/Asp_Net_MVC_Workshop1/blob/2fa055ab0fc7a48fa04f438d02805496fb18df4a/Book_final/Controllers/HomeController.cs#L10
https://github.com/Harudas/Asp_Net_MVC_Workshop1/blob/2fa055ab0fc7a48fa04f438d02805496fb18df4a/Book_final/Controllers/HomeController.cs#L58
[重複的 Script 設定, 請善用 Layout]
https://github.com/Harudas/Asp_Net_MVC_Workshop1/blob/2fa055ab0fc7a48fa04f438d02805496fb18df4a/Book_final/Views/Home/Create.cshtml#L85-L87
https://github.com/Harudas/Asp_Net_MVC_Workshop1/blob/2fa055ab0fc7a48fa04f438d02805496fb18df4a/Book_final/Views/Home/Edit.cshtml#L116-L118
[htmlAttributes,具名參數使用與否請維持一致性]
https://github.com/Harudas/Asp_Net_MVC_Workshop1/blob/2fa055ab0fc7a48fa04f438d02805496fb18df4a/Book_final/Views/Home/Create.cshtml#L17
https://github.com/Harudas/Asp_Net_MVC_Workshop1/blob/2fa055ab0fc7a48fa04f438d02805496fb18df4a/Book_final/Views/Home/Create.cshtml#L19
[私有變數小寫]
https://github.com/Harudas/Asp_Net_MVC_Workshop1/blob/2fa055ab0fc7a48fa04f438d02805496fb18df4a/Book_final/Controllers/HomeController.cs#L56
https://github.com/Harudas/Asp_Net_MVC_Workshop1/blob/2fa055ab0fc7a48fa04f438d02805496fb18df4a/Book_final/Controllers/HomeController.cs#L38
[公有 Fuction 大寫]
https://github.com/Harudas/Asp_Net_MVC_Workshop1/blob/2fa055ab0fc7a48fa04f438d02805496fb18df4a/Book_final/Controllers/HomeController.cs#L78
[未使用的 View]
Views/Home/About Views/Home/Contact
命名原則
[使用有意義、符合語意命名]
https://github.com/Harudas/Asp_Net_MVC_Workshop1/blob/2fa055ab0fc7a48fa04f438d02805496fb18df4a/Book_final/Controllers/HomeController.cs#L10
https://github.com/Harudas/Asp_Net_MVC_Workshop1/blob/2fa055ab0fc7a48fa04f438d02805496fb18df4a/Book_final/Controllers/HomeController.cs#L58