public static RunHistory IncludeRunHistoryDetail(this RunHistory runHistory, IRunHistoryDetailRepository RunHistoryDetailRepository)
 {
     if (runHistory.RunHistoryDetails != null)
     {
         return(runHistory);
     }
     runHistory.RunHistoryDetails = (RunHistoryDetailList)RunHistoryDetailRepository.GetDataByRunHistoryId(runHistory.Id);
     return(runHistory);
 }
 public static RunHistory IncludeRunHistoryDetail(this RunHistory runHistory, IRunHistoryDetailRepository RunHistoryDetailRepository) 
 {
    if (runHistory.RunHistoryDetails != null) return  runHistory;   
          runHistory.RunHistoryDetails = (RunHistoryDetailList)RunHistoryDetailRepository.GetDataByRunHistoryId(runHistory.Id);
    return  runHistory;      
 }
示例#3
0
 public RunHistoryDetailApiController(IRunHistoryDetailRepository dbRepository)
 {
     _dbRepository = dbRepository;
 }
 public RunHistoryDetailApiController(IRunHistoryDetailRepository dbRepository)
 {
     _dbRepository = dbRepository;
 }