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()); }
public ActionResult Login() { string url = LineRequestService.Login(); return(Json(url)); }