public ActionResult Delete(int id) { try { _addressApplicationService.Delete(id); return(Ok()); } catch (Exception ex) { return(BadRequest(new { ex.Message })); } }
public ActionResult Delete(int id) { applicationServiceAddress.Delete(id); return(Ok("Address deleted successfully!")); }