diff --git a/barkmanAPI/Program.cs b/barkmanAPI/Program.cs index 658b103..9a9de8e 100644 --- a/barkmanAPI/Program.cs +++ b/barkmanAPI/Program.cs @@ -209,10 +209,10 @@ customerGroup.MapPost("", async (Customers newCustomerInput, BarkContext db) => { Name = newCustomerInput.Name, Email = newCustomerInput.Email, + Company = newCustomerInput.Company, + PhoneNumber = newCustomerInput.PhoneNumber, + Address = newCustomerInput.Address, }; - newCustomer.Company = newCustomerInput.Company; - newCustomer.PhoneNumber = newCustomerInput.PhoneNumber; - newCustomer.Address = newCustomerInput.Address; db.Customers.Add(newCustomer); await db.SaveChangesAsync();