예제 #1
0
        public async Task <ActionResult> DeleteMortgage(long id)
        {
            if (!_service.MortgageExists(id))
            {
                return(NotFound());
            }

            await _service.DeleteMortgage(id);

            return(StatusCode(StatusCodes.Status204NoContent));
        }