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 UserRank #258 · 9.8K pointsPosted Jul 9, 2014, 12:41 AM EDT
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
Himanshu Pandya48 pointsPosted Jul 10, 2014, 3:47 AM EDT
Guest UserRank #258 · 9.8K pointsPosted Jul 12, 2014, 6:26 PM EDT
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 Pandya48 pointsPosted Jul 16, 2014, 9:05 PM EDT
Guest UserRank #258 · 9.8K pointsPosted Jul 20, 2014, 10:38 PM EDT
public void RenderPage()
{
switch (authorization)
{
case "Admin":
return View("admin");
case "Public":
return View("admin");
case "Employees":
return View("employee");
}
}
twitter @sumitjolly