public ActionResult Auth(FacebookOAuthAuthViewModel model) { var response = _oauthService.Auth(_services.WorkContext, model.Code, model.Error, model.State); if (response.Error != null) { _services.Notifier.Add(NotifyType.Error, response.Error); } return(this.RedirectLocal(response.ReturnUrl)); }
public ActionResult FacebookAuth(FacebookOAuthAuthViewModel model) { var response = _teeyootFacebookOAuthService.Auth( WorkContext, model.Code, model.Error, model.State); return(Redirect(response.Error == null ? "~/" : "~/Login")); }