public async Task <IEnumerable <DateTime> > GetValidTimeForDay(int serviceLocationId, DateTime day) { var appointments = _appointmentRepository.WhereAsync(e => e.ServiceLocationId == serviceLocationId && e.AppointmentTime.Date == day.Date); var program = _programRepository.WhereAsync(e => e.ServiceLocationId == serviceLocationId); return(null); }
public async Task <IEnumerable <ServiceProgramViewModel> > GetByLocationId(int locationId) { return(_mapper.Map <IEnumerable <ServiceProgram>, IEnumerable <ServiceProgramViewModel> >( await _programRepository.WhereAsync(e => e.ServiceLocationId == locationId))); }