Test with valid account is username: admin and password: 123Īccess Index action in Product controller in Admin area with following url: again Test with invalid account is username: abc and password: 123 In Views/Product folder, create new view named Index.cshtml as below: Īccess Index action in Home controller with following url: OutputĪccess Index action in Product controller in Admin area with following url: without session Public class ProductController : Controller In Area\Admin\Controllers folder, create new controller named ProductController.cs as below: using In this area, create new Controller and Views as below: Product Controller In Views/Login folder, create new view named Welcome.cshtml as below: In Views/Login folder, create new view named Index.cshtml as below: In Views/Home folder, create new view named Index.cshtml as below: In Views folder, create new views as below: Home Views If (username != null
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |