示例#1
0
        public JsonResult List()
        {
            var user  = GetCurrentUser();
            var model = new SkillVm(user);

            return(Json(model.SeleSkills, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        public PartialViewResult Edit()
        {
            var user  = GetCurrentUser();
            var model = new SkillVm(user);

            return(PartialView(model));
        }
示例#3
0
        public PartialViewResult Show(int?id)
        {
            var user  = GetUserByIdOrCurrent(id);
            var model = new SkillVm(user);

            ViewData[Constants.ProfileEditKey] = (CurrentUserId == user.UserId);
            return(PartialView(model));
        }
示例#4
0
        public ActionResult Edit(SkillVm model)
        {
            var result = UpdateUserSubProfile(model);

            return(result);
        }