Пример #1
0
        public async Task <IActionResult> DeleteExchangeAsync(string shortcut)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (string.IsNullOrWhiteSpace(shortcut))
            {
                return(BadRequest());
            }

            if (!await _service.DeleteExchangeAsync(shortcut))
            {
                return(NotFound());
            }
            return(NoContent());
        }