mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 03:11:48 -05:00
roledetails
This commit is contained in:
parent
d76f06578c
commit
774b319a47
1 changed files with 13 additions and 0 deletions
|
@ -26,5 +26,18 @@ public ActionResult Index(string id = "home")
|
||||||
ViewBag.Page = id;
|
ViewBag.Page = id;
|
||||||
return View();
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue