public ActionResult Edit(int id, ComplaintType complaintType) { try { _dbComplaintTypeRepository.Update(complaintType); return(RedirectToAction("Index")); } catch { return(View(complaintType)); } }
public void Update(ComplaintType complaintType) { _dbRepository.Update(complaintType.Name, complaintType.Id); }