示例#1
0
 public ActionResult Create(ComplaintType complaintType)
 {
     try
     {
         _dbComplaintTypeRepository.Insert(complaintType);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View(complaintType));
     }
 }
示例#2
0
 public int Insert(ComplaintType complaintType)
 {
     return(_dbRepository.Insert(complaintType.Name));
 }