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