Пример #1
0
        public async Task <IActionResult> Delete(int id)
        {
            try
            {
                var success = await _vehiclesService.DeleteAsync(id);

                if (!success)
                {
                    return(NotFound());
                }
                return(Ok());
            }
            catch (Exception ex)
            {
                return(NotFound(ex));
            }
        }