public async Task <ActionResult> DeleteMortgage(long id) { if (!_service.MortgageExists(id)) { return(NotFound()); } await _service.DeleteMortgage(id); return(StatusCode(StatusCodes.Status204NoContent)); }