示例#1
0
        public async Task <IActionResult> DeleteAsync(int id)
        {
            if (!await _buildingService.ContainsAsync(id))
            {
                return(NotFound(id));
            }

            await _buildingService.DeleteAsync(id);

            return(NoContent());
        }