Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public IActionResult AddCustomer(Customer newCustomer) { try { _customerService.AddCustomerToRepo(newCustomer); return(CreatedAtAction("AddCustomer", newCustomer)); } catch (Exception) { // TODO: Check if this is the right error code for this. return(StatusCode(500)); } }