public IActionResult Delete(string customerId) { if (string.IsNullOrEmpty(customerId)) { return(BadRequest()); } var response = _customerApplication.Delete(customerId); if (response.IsSuccess) { return(Ok(response)); } return(BadRequest(response.Message)); }
public IActionResult Delete(string dni) { if (string.IsNullOrWhiteSpace(dni)) { return(BadRequest()); } var response = application.Delete(dni); if (response.IsSuccess) { return(Ok(response)); } return(BadRequest(response.Message)); }