public PartialViewResult Edit() { var user = GetCurrentUser(); var model = new IntrestProfileVm(user); return(PartialView(model)); }
public PartialViewResult Show(int?id) { var user = GetUserByIdOrCurrent(id); var model = new IntrestProfileVm(user); ViewData[Constants.ProfileEditKey] = (CurrentUserId == user.UserId); return(PartialView(model)); }
public ActionResult Edit(IntrestProfileVm model) { var result = UpdateUserSubProfile(model); return(result); }