public IActionResult AddCustomerProduct(int customerId, [FromBody] int productId) { var customer = _sampleContext.AddCustomerProduct(customerId, productId); if (customer == null) { return(NotFound()); } return(new ObjectResult(customer)); }
public IActionResult AddCustomerProduct(int customerId, [FromBody] int productId) { var customer = _sampleContext.AddCustomerProduct(customerId, productId); if (customer == null) { return(NotFound()); } return(new ObjectResult(customer)); }