public async Task <GetSiteAlternativeDatesResponse> GetSiteAlternativeDates(GetSiteAlternativeDatesRequest request) { var siteAlternativeDates = (await _repository.GetListAsync <view_AdmSiteAlternativeDates>()) .Select(p => new SiteAlternativeDateModel() { AdmSiteID = p.AdmSiteID, SiteID = p.SiteID, SiteDescription = p.SiteDescription, SchoolAlterStartDate = (p.SchoolAltStartDate ?? request.StartDate).ToUsDateString(), SchoolTempStatusExpDate = (p.SchoolTempStatusExpDate ?? request.TempExpDate).ToUsDateString() }) .ToList(); return(new GetSiteAlternativeDatesResponse { Items = siteAlternativeDates }); }
public async Task <GetSiteAlternativeDatesResponse> GetSiteAlternativeDates([FromQuery] GetSiteAlternativeDatesRequest request) { return(await _yearEndProcessLogic.GetSiteAlternativeDates(request)); }