コード例 #1
0
        public async Task <IActionResult> AddBookingToProperty(AddBookingInputModel inputModel)
        {
            try
            {
                var result = await propertiesService.AddBookingToProperty(inputModel.HotelId);

                return(this.Json(result));
            }
            catch (Exception)
            {
                return(this.NotFound());
            }
        }