示例#1
0
        public ActionResult Detail(Guid?id)
        {
            bn_UserProfile bnUser = new bn_UserProfile();
            pb_UserProfile model  = null;

            if (id.HasValue)
            {
                model = bnUser.GetById(id.Value);
            }
            return(View(model));
        }
示例#2
0
        public ActionResult p_UserContact(Guid userId)
        {
            bn_UserContact bnUserContact = new bn_UserContact();
            bn_UserProfile bnUserProfile = new bn_UserProfile();
            ps_UserContact model         = new ps_UserContact();

            model.UserProfile = bnUserProfile.GetById(userId);
            model.Contacts    = bnUserContact.GetByUserId(userId);

            return(View(model));
        }
示例#3
0
        public ActionResult Edit(Guid?userId)
        {
            if (!userId.HasValue)
            {
                userId = ps_Membership.GetUser().UserId;
            }

            bn_UserProfile bnUserProfile = new bn_UserProfile();
            pb_UserProfile model         = new pb_UserProfile();

            model = bnUserProfile.GetById((Guid)userId);

            return(View(model));
        }
示例#4
0
        public ActionResult Index(Guid?userId)
        {
            if (!userId.HasValue)
            {
                userId = ps_Membership.GetUser().UserId;
            }

            bn_UserContact bnUserContact = new bn_UserContact();
            bn_UserProfile bnUserProfile = new bn_UserProfile();
            ps_UserContact model         = new ps_UserContact();

            model.Contacts    = bnUserContact.GetByUserId((Guid)userId);
            model.UserProfile = bnUserProfile.GetById((Guid)userId);

            return(View(model));
        }