Esempio n. 1
0
 public ActionResult ValidEvent()
 {
     AdminModels admin = new AdminModels();
     admin.User = ConcertFinderMVC.BusinessManagement.User.UserToUserItem(User.Identity.Name);
     admin.listEvent = BusinessManagement.Event.GetListValid();
     admin.Page = "Evénéments Valides";
     return View("AdminEvent", admin);
 }
Esempio n. 2
0
 public ActionResult ManageUser()
 {
     /*if (BusinessManagement.User.GetUserByPseudo(User.Identity.Name).Role.Equals(UserModel.GetRoleType((int)eRole.Admin)))
     {*/
         AdminModels admin = new AdminModels();
         admin.User = ConcertFinderMVC.BusinessManagement.User.UserToUserItem(User.Identity.Name);
         admin.listPost = new List<string>() { UserModel.GetRoleType((int)eRole.User), UserModel.GetRoleType((int)eRole.Admin), UserModel.GetRoleType((int)eRole.Moderateur)};
         admin.listUser = BusinessManagement.User.GetListUser();
         return View("AdminUser", admin);
     /*}
     else
     {
         return RedirectToAction("Index", "Event");
     }*/
 }