I am creating a simple ASP.NET application and want to know about that
How can I distribute Controller for different pages ?
Try to create pages and distribute controller of those pages as per logical binding. e.g public accessible in different controller and private accessible in different controller.
Guest UserPosted Jul 21, 2014, 2:38 AM
public void RenderPage()
{
switch (authorization)
{
case "Admin":
return View("admin");
case "Public":
return View("admin");
case "Employees":
return View("employee");
}
}
twitter @sumitjolly
Himanshu PandyaPosted Jul 17, 2014, 1:05 AM
Guest UserPosted Jul 12, 2014, 10:26 PM
Are pages separate for all these 3 parties
- Public
- Admin
- Employees
OR
- Same pages but depending upon Public | Employee | Admin pages will render different content?
Himanshu PandyaPosted Jul 10, 2014, 7:47 AM
Guest UserPosted Jul 9, 2014, 4:41 AM
So, employee.cshtml has EmployeeController and Employee (Model) kinda structure.
Now, what do you want to see as public/private split, can you please elaborate by expanding above Employee example?
twitter @sumitjolly