public IActionResult Update([FromBody] EF.Customer customer) { customer = _customberDb.UpdateCustomer(customer); if (customer == null) { return(NotFound()); } return(Ok(customer)); }
public IActionResult Create([FromBody] EF.Customer newCustomer) { return(Ok(_customberDb.AddCustomer(newCustomer))); }