Example #1
0
        private static async Task <SocialIdentityModel> ToViewModelAsync(AuthorizationServer.Business.SocialIdentity.SocialIdentity socialIdentity, UrlHelper urlHelper, RequestContext requestContext)
        {
            var viewModel = new SocialIdentityModel();

            /*
             *  await socialIdentity.ExtrudeInformationAsync((id, appId, type, method, userid, provider, token) =>
             *  {
             *      viewModel.Method = method;
             *      viewModel.UserId = userid;
             *      viewModel.Provider = provider;
             *      viewModel.Token = token;
             *  });
             */
            return(viewModel);
        }
        public async Task <ActionResult> Index(SocialIdentityModel model)
        {
            var viewModel = await model.ResolveAsync(DataContext, Request.GetHttpVerb(), Url, ControllerContext.RequestContext).ConfigureAwait(false);

            return(View(viewModel));
        }