public ActionResult Create(ComplaintType complaintType) { try { _dbComplaintTypeRepository.Insert(complaintType); return(RedirectToAction("Index")); } catch { return(View(complaintType)); } }
public int Insert(ComplaintType complaintType) { return(_dbRepository.Insert(complaintType.Name)); }