public async Task <IActionResult> DeleteAsync(int id) { if (!await _buildingService.ContainsAsync(id)) { return(NotFound(id)); } await _buildingService.DeleteAsync(id); return(NoContent()); }