public async Task <IEnumerable <Room> > GetRooms() { return(await repository.GetAllRooms()); }
public ActionResult <IEnumerable <RoomReadDto> > GetAllRooms() { var rooms = _repository.GetAllRooms(); return(Ok(_mapper.Map <IEnumerable <RoomReadDto> >(rooms))); }