public ActionResult SignIn(string service) { if (string.IsNullOrEmpty(service)) { if (User.Identity.IsAuthenticated) { // recheck user (maybe it was deleted, while cookie is truth) var userExist = _userService.IsUserExist(User.Id); if (userExist) { return(RedirectToRoute("PublicFlow")); } // Clear cookie FormsAuthentication.SignOut(); } } if (service == "facebook") { return(Redirect(FB.CreateAuthUrl(Randomizer.GetString(16)))); } return(View(new SigninViewModel())); }
public ActionResult FbSync(int photoId) { /* var photoModel = _photoService.GetPhoto(Int32.Parse(photoId)); * var photoPath = new List<string>(); */ return(Redirect(FB.CreateAuthUrl(Randomizer.GetString(16)))); //FB.AddPhotosToAlbum(photoPath,"MakTest",); }