public ActionResult Create(ExpectedResultType expectedResultType) { try { _dbExpectedResultTypeRepository.Insert(expectedResultType); return(RedirectToAction("Index")); } catch { return(View(expectedResultType)); } }
public int Insert(ExpectedResultType expectedResultType) { return(_dbRepository.Insert(expectedResultType.Name)); }