Beispiel #1
0
        public IActionResult Update([FromBody] HotelUpdateModel model, string id)
        {
            var hotelIdDecrypted = Terminator.DecryptToInt32(id);

            if (hotelIdDecrypted != 0)
            {
                model.Id = hotelIdDecrypted;
                var response = _hotelService.Update(model);
                return(Ok(response));
            }
            return(Ok(BaseResponse <bool> .BadRequest()));
        }