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