Exemple #1
0
 // 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());
 }
Exemple #3
0
 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)));
 }
Exemple #4
0
        // GET: User
        public ActionResult Index()
        {
            if (!UserHelpar.CanDo(Permissons.Users))
            {
                return(RedirectToAction("Unauthorized", "Home", null));
            }

            List <UserViewModel> model = UserViewModel.GetUserList();

            return(View(model));
        }