Beispiel #1
0
        public async Task <IActionResult> Register([Bind("FirstName,LastName,Address,City,State,ZipCode,Phone,Email,Password")] CustomerDTO dto)
        {
            var customer = await _client.AddCustomer(dto);

            // var customer = await _client.GetCustomers();
            //var customer = task.Result;

            if (customer != null)
            {
                return(RedirectToAction("index",
                                        "Loading",
                                        new { id = customer.CustomerID, toProfile = false }));
            }
            return(View(customer));
        }