Ejemplo n.º 1
0
        // GET: Auth
        public ActionResult Index(string code)
        {
            ECommerce oECommerce = new ECommerce();

            if (!string.IsNullOrEmpty(code))
            {
                //Get Access Token
                string token = oECommerce.GetToken(code);

                var rrr = token.Split('-');

                Session["DataSession"] = oECommerce.GetUser(rrr[4], token);
                //Get Data User
            }
            return(RedirectToAction("Index", "Home"));
        }