public async Task <ActionResult> RemoveTemplate(int id) { var template = await TemplatesHandler.FindById(id); TemplatesHandler.Remove(template); return(RedirectToAction("DocumentTemplates")); }
public async Task <ActionResult> DeletePosition(int id) { var position = await _positionsHandler.FindById(id); if (position != null) { _positionsHandler.Remove(position); } return(RedirectToAction("Positions")); }
public async Task <ActionResult> RemoveDocumentType(int id) { var type = await DocumentTypesHandler.FindById(id); if (type != null) { DocumentTypesHandler.Remove(type); } return(RedirectToAction("DocumentTypes")); }
public async Task <ActionResult> DeleteRole(int id) { var role = await RolesHandler.FindById(id); if (role != null) { RolesHandler.Remove(role); } return(RedirectToAction("Roles")); }