コード例 #1
0
        public PartialViewResult Edit()
        {
            var user  = GetCurrentUser();
            var model = new IntrestProfileVm(user);

            return(PartialView(model));
        }
コード例 #2
0
        public PartialViewResult Show(int?id)
        {
            var user  = GetUserByIdOrCurrent(id);
            var model = new IntrestProfileVm(user);

            ViewData[Constants.ProfileEditKey] = (CurrentUserId == user.UserId);
            return(PartialView(model));
        }
コード例 #3
0
        public ActionResult Edit(IntrestProfileVm model)
        {
            var result = UpdateUserSubProfile(model);

            return(result);
        }