public ActionResult Edit(RoleViewModel roleViewModel)
 {
     if (ModelState.IsValid)
     {
         Capacity role = _repository.GetRoleById(roleViewModel.RoleDetail.Id);
         if (role == null)
         {
             return(HttpNotFound());
         }
         _repository.RoleSaveChanges(roleViewModel.RoleDetail);
         return(RedirectToAction("Index"));
     }
     return(View(roleViewModel));
 }