public static ExpectedResultType IncludeExpectedResults(this ExpectedResultType expectedResultType,
     IExpectedResultRepository expectedResultRepository)
 {
     if (expectedResultType.ExpectedResults != null) return expectedResultType;
     expectedResultType.ExpectedResults =
         (ExpectedResultList) expectedResultRepository.GetDataByExpectedResultTypeId(expectedResultType.Id);
     return expectedResultType;
 }
Exemplo n.º 2
0
 public static ExpectedResultType IncludeExpectedResults(this ExpectedResultType expectedResultType,
                                                         IExpectedResultRepository expectedResultRepository)
 {
     if (expectedResultType.ExpectedResults != null)
     {
         return(expectedResultType);
     }
     expectedResultType.ExpectedResults =
         (ExpectedResultList)expectedResultRepository.GetDataByExpectedResultTypeId(expectedResultType.Id);
     return(expectedResultType);
 }
 public IQueryable <ExpectedResult> GetDataByExpectedResultTypeId(int expectedResultTypeId)
 {
     return(_dbRepository.GetDataByExpectedResultTypeId(expectedResultTypeId).AsQueryable());
 }