Пример #1
0
    public async Task <IActionResult> DeleteAsync(string id)
    {
        try
        {
            await _mapService.DeleteAsync(id);

            return(NoContent());
        }
        catch (InvalidOperationException e)
        {
            return(BadRequest(e.Message));
        }
    }