roledetails

This commit is contained in:
Michael 2017-05-22 21:07:44 -04:00
parent d76f06578c
commit 774b319a47

View file

@ -26,5 +26,18 @@ public ActionResult Index(string id = "home")
ViewBag.Page = id;
return View();
}
public ActionResult RoleDetails(string id)
{
var db = new ApplicationDbContext();
Role role = null;
foreach (var r in db.Roles.ToArray())
{
if (r is Role)
if ((r as Role).Id == id)
role = r as Role;
}
return View(role);
}
}
}