public IActionResult Insert([FromBody] CustomerDTO customerDTO) { if (customerDTO == null) { return(BadRequest()); } var response = _customerApplication.Insert(customerDTO); if (response.IsSuccess) { return(Ok(response)); } return(BadRequest(response.Message)); }
public IActionResult Post([FromBody] AddCustomerDTO addCustomerDTO) { if (addCustomerDTO == null) { return(BadRequest()); } var response = application.Insert(addCustomerDTO); if (response.IsSuccess) { return(Ok(response)); } return(BadRequest(response.Message)); }