예제 #1
0
        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);
        }
예제 #2
0
 public IList <Availability> GetAvailabilitiesFor(Guid siteId, Guid serviceItemId)
 {
     return(_availabilityRepository.Find(y => y.SiteId.Equals(siteId) &&
                                         y.ServiceItemId.Equals(serviceItemId)).ToList());
 }