Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. if (db.Users.Any())
  2. {
  3. ViewBag.UsersRole = true;
  4. ViewBag.AdminCount = uh.UsersInRole("Administrator").Count();
  5. ViewBag.PMCount = uh.UsersInRole("Project Manager").Count();
  6. ViewBag.DevCount = uh.UsersInRole("Developer").Count();
  7. ViewBag.SubCount = uh.UsersInRole("Submitter").Count();
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement