예제 #1
0
        public async Task <IActionResult> AddRoomAsync([FromForm] RoomRequestModel room)
        {
            try
            {
                var resp = await _roomService.AddARoomAsync(room);

                return(Ok(resp));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }