Esempio n. 1
0
        public async Task <ActionResult> GetOccupancy(int roomNo)
        {
            var roomOccupant = await _roomRepo.GetRoomOccupancy(roomNo);

            if (string.IsNullOrEmpty(roomOccupant))
            {
                return(Ok("Room has no occupant"));
            }
            return(Ok(roomOccupant));
        }