public ActionResult Edit(int id, ExpectedResult expectedResult)
 {
     try
     {
         _dbExpectedResultRepository.Update(expectedResult);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View(expectedResult));
     }
 }
 public void Update(ExpectedResult expectedResult)
 {
     _dbRepository.Update(expectedResult.TestId, expectedResult.ExpectedResultTypeId, expectedResult.AssertTypeId,
                          expectedResult.ExpectedValue, expectedResult.ResultIndex, expectedResult.Id);
 }