public IActionResult Add(Customer customer) { var result = _customerService.AddService(customer); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public ActionResult Post(DtoCustomerService customerService) { _customerService.AddService(customerService); return(Ok()); }