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; }
public RunHistoryDetailApiController(IRunHistoryDetailRepository dbRepository) { _dbRepository = dbRepository; }