示例#1
0
        public async Task <IActionResult> Login([Bind("Email, Password")] CustomerDTO login)
        {
            if (ModelState.IsValid)
            {
                var customer = await _client.GetCustomersProfile(login);

                // add customer obj to app customer
                return(RedirectToAction("index",
                                        "Loading",
                                        new { id = customer.CustomerID, toProfile = false }));
            }
            return(View(login));
        }