public ActionResult CreateDocumentType(DocumentType documentType) { if (ModelState.IsValid) { DocumentTypesHandler.Add(documentType); return RedirectToAction("DocumentTypes"); } return View("Create/CreateDocumentType", documentType); }
public ActionResult EditDocumentType(DocumentType documentType) { DocumentTypesHandler.Update(documentType); return RedirectToAction("DocumentTypes"); }