Exemplo n.º 1
0
 /// <summary>
 /// Action for display the profile page of a current login user
 /// </summary>
 /// <returns></returns>
 public ActionResult MyProfile()
 {
     MyProfileObject profileobj = new MyProfileObject();
     List<UserCard> usercards = new List<UserCard>();
     UserEngine userEngine = new UserEngine();
     AuthenticationEngine authEngine = new AuthenticationEngine();
     string response = authEngine.GetUserFromSessionJSON(Request.Cookies["sessionkey"].Value);
     ResponseObjectForAnything responseObject = new ResponseObjectForAnything();
     responseObject = (ResponseObjectForAnything)Serializer.JSONStringToObject<ResponseObjectForAnything>(response);
     profileobj = (MyProfileObject)Serializer.JSONStringToObject<MyProfileObject>(responseObject.ResultObjectJSON);
     GetInitialDropDownComplexModel(profileobj);            
     return View(profileobj);
 }