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