Ejemplo n.º 1
0
 public async Task SendDeskStatus(DeskStatus deskStatus)
 {
     await Clients.All.SendAsync("ReceiveDeskStatus", deskStatus);
 }
 public IActionResult GetDeskAvailabilityDeskStatus(DateTime date, DeskStatus deskStatus)
 {
     return(Json(_mapper.Map <List <BookingDeskDTO> >(_deskAvailabilityService.GetDeskAvailability(date, deskStatus))));
 }
 public IEnumerable <Desk> GetDeskAvailability(DateTime dateTime, DeskStatus status)
 {
     return(CountDesksStatus(UnitOfWork.DeskRepository.ReadAll(x => x.Status == status)
                             .Include(x => x.Room).Include(x => x.Orders).Include(x => x.User)
                             .AsNoTracking(), dateTime));
 }