Пример #1
0
        public IActionResult ActiveForOperation(string id, bool value)
        {
            var hotelIdDecrypted = Decrypt.DecryptToInt32(id);

            if (hotelIdDecrypted != 0)
            {
                var response = _hotelService.ActiveForOperation(hotelIdDecrypted, value);
                return(Ok(response));
            }
            return(Ok(BaseResponse <bool> .BadRequest()));
        }