示例#1
0
        public ActionResult UpdateProfileView()
        {
            UpdateModel UpdateModel = new UpdateModel();
            List <spGetUserDetails_Result> oUserDetails = null;

            if (Session["UserId"] != null)
            {
                int iUserId = Convert.ToInt32(Session["UserId"]);
                oUserDetails          = BrokerUtility.GetUserDetails(iUserId);
                UpdateModel.FirstName = oUserDetails[0].FirstName;
                UpdateModel.LastName  = oUserDetails[0].LastName;
            }
            return(View(UpdateModel));
        }