// GET: RelationRequests public ActionResult Index() { if (!UserHelpar.CanDo(Helpars.Permissons.RelationRequest)) { return(RedirectToAction("Unauthorized", "Home", null)); } return(View()); }
// GET: RegisterRequest public ActionResult Index() { if (!UserHelpar.CanDo(Permissons.AcceptUser)) { return(RedirectToAction("Unauthorized", "Home", null)); } return(View()); }
public ActionResult Details(int Id) { if (!UserHelpar.CanDo(Helpars.Permissons.RelationRequest)) { return(RedirectToAction("Unauthorized", "Home", null)); } ViewBag.SPerson = RelationRequestViewModel.GetSourcePerson(Id); ViewBag.TPerson = RelationRequestViewModel.GetTargetPerson(Id); return(View(RelationRequestViewModel.Find(Id))); }
// GET: User public ActionResult Index() { if (!UserHelpar.CanDo(Permissons.Users)) { return(RedirectToAction("Unauthorized", "Home", null)); } List <UserViewModel> model = UserViewModel.GetUserList(); return(View(model)); }