Esempio n. 1
0
 public ActionResult Settings(UserProfileModel model)
 {
     model.Identity.Id = (Guid)User.UserId;
     model.AvailableProviders = AuthorizationRoot.Clients.ToList();
     DataService.UpdateUserProfile(model.Identity);
     if (Session["TempAvatar"] != null)
     {
         DataService.UpdateUserAvatar((Guid)User.UserId, Session["TempAvatar"] as byte[]);
         Session.Remove("TempAvatar");
     }
     SocialIdentity.SetAuthTicket(model.Identity, Response);
     return View(model);
 }
Esempio n. 2
0
 public ActionResult Settings()
 {
     UserProfileModel model = new UserProfileModel
         {
             Identity = DataService.GetUserProfile((Guid)User.UserId),
             AvailableProviders = AuthorizationRoot.Clients.ToList()
         };
     return View(model);
 }