public JsonResult List() { var user = GetCurrentUser(); var model = new SkillVm(user); return(Json(model.SeleSkills, JsonRequestBehavior.AllowGet)); }
public PartialViewResult Edit() { var user = GetCurrentUser(); var model = new SkillVm(user); return(PartialView(model)); }
public PartialViewResult Show(int?id) { var user = GetUserByIdOrCurrent(id); var model = new SkillVm(user); ViewData[Constants.ProfileEditKey] = (CurrentUserId == user.UserId); return(PartialView(model)); }
public ActionResult Edit(SkillVm model) { var result = UpdateUserSubProfile(model); return(result); }