Exemplo n.º 1
0
        public ActionResult LineBinding(string code)
        {
            string accessToken = LineRequestService.CodeToAccessToken(code);
            var    lineProfile = LineRequestService.UseTokenToGetProfile(accessToken);

            var userId = StoreManagerService.SearchLineID(lineProfile.userId);

            if (userId == 0)
            {
                LineBindingService.InsertStoreManager(lineProfile);
            }
            else
            {
                StoreManagerService.UpdateManagerStatus(userId, "True");
            }


            return(View());
        }
Exemplo n.º 2
0
        public ActionResult Login()
        {
            string url = LineRequestService.Login();

            return(Json(url));
        }