public IActionResult AddCustomer(Customer newCustomer) { var insertedCustomer = _user.AddNew(newCustomer); return(insertedCustomer == default(Customer) ? BadRequest() as IActionResult : Ok(insertedCustomer)); }