public async Task <IActionResult> DeleteAddress(Guid id) { try { var(resEntity, resErr) = await _dBService.DeleteEntity(id); if (resErr != null) { ModelState.AddModelError("Exception", resErr.ExceptionStacktrace); return(BadRequest(ModelState)); } else { return(new ObjectResult(resEntity) { StatusCode = StatusCodes.Status201Created }); } } catch (Exception /*ex*/) { return(BadRequest()); } }