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