public async Task <IActionResult> PostRoomTypeAsync([FromBody] RoomTypeModel obj) { if (!ModelState.IsValid) { return(BadRequest()); } var response = await _roomService.AddRoomTypesAsync(obj); _responseModel.Status = response.Status; _responseModel.Message = response.Message; if (_responseModel.Status) { return(Ok(_responseModel)); } else { return(BadRequest(_responseModel)); } }