public ActionResult Create(AssertType assertType) { try { _dbAssertTypeRepository.Insert(assertType); return(RedirectToAction("Index")); } catch { return(View(assertType)); } }
public int Insert(AssertType assertType) { return(_dbRepository.Insert(assertType.Name)); }