private async Task <List <PersonInOffice> > GetInOfficeAvailability(string organisation) { var items = new List <PersonInOffice>(); await foreach (var item in _availabilityRepository.Find(DateTime.Now, organisation, 14)) { items.Add(item); } return(items); }
public IList <Availability> GetAvailabilitiesFor(Guid siteId, Guid serviceItemId) { return(_availabilityRepository.Find(y => y.SiteId.Equals(siteId) && y.ServiceItemId.Equals(serviceItemId)).ToList()); }