public async Task <IEnumerable <Room> > Handle(GetAllRooms request, CancellationToken cancellationToken)
 {
     return(await _reservationRepository.GetAllRooms());
 }
Exemplo n.º 2
0
        public IActionResult All()
        {
            var res = new GetAllRooms(Repository).Execute();

            return(Ok(res));
        }
Exemplo n.º 3
0
 public async Task <IReadOnlyList <RoomReadModel> > ExecuteQueryAsync(
     GetAllRooms query,
     CancellationToken cancellationToken) =>
 await _dbReadContext
 .RunAsync(factory => factory.CreateRoomRepository()
           .GetAll());