Esempio n. 1
0
        public async Task <Room> GetRoomById(int id)
        {
            var room = await _roomRepo.GetAsync(id);

            if (room == null)
            {
                throw new NotFoundException("Room Not found");
            }
            return(room);
        }