Example #1
0
 public ActionResult Create(RoleVm.Create model)
 {
     if (ModelState.IsValid)
     {
         _roleSvc.Create(model.RoleName, model.RoleDescription);
         GetAlert(Success, "Role created!");
         return(RedirectToAction("Index"));
     }
     GetAlert(Danger, "Error!");
     return(View("Create", model));
 }
Example #2
0
        public ActionResult Create()
        {
            var model = new RoleVm.Create();

            return(View("Create", model));
        }