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