public ActionResult EditRole(Role role)
 {
     if (ModelState.IsValid)
     {
         RolesHandler.Update(role);
     }
     return(RedirectToAction("Roles"));
 }
        public ActionResult EditUser(User user)
        {
            ViewBag.Positions = PositionsHandler.PositionsSelectList();
            ViewBag.Roles     = rolesHandler.RolesSelectList();

            if (ModelState.IsValid)
            {
                UsersHandler.Update(user);
            }
            return(RedirectToAction("Users"));
        }
 public ActionResult EditPosition(Position position)
 {
     _positionsHandler.Update(position);
     return(RedirectToAction("Positions"));
 }
 public ActionResult EditDocumentType(DocumentType documentType)
 {
     DocumentTypesHandler.Update(documentType);
     return(RedirectToAction("DocumentTypes"));
 }
 public ActionResult EditTemplate(DocumentTemplate template)
 {
     TemplatesHandler.Update(template);
     return(RedirectToAction("DocumentTemplates", "Admin"));
 }