public PartialViewResult Show(int? id)
 {
     id = id ?? CurrentUserId;
     var user = _db.Users.Include(u => u.UserRoles).Single(u => u.UserId == id);
     var model = new BasicProfileVm(user);
     ViewData[Constants.RoleKey] = user.RoleStr;
     ViewData[Constants.ProfileEditKey] = (CurrentUserId == user.UserId);
     return PartialView(model);
 }
 public PartialViewResult Edit()
 {
     var user = GetCurrentUser();
     var model = new BasicProfileVm(user);
     ViewBag.MaritialStatus = model.MaritialStatus.ToSelectList();
     ViewBag.Sex = model.Sex.ToSelectList();
     ViewBag.BloodGroup = new SelectList(Constants.BloodGroups, model.BloodGroup);
     return PartialView(model);
 }
 public ActionResult Edit(BasicProfileVm model)
 {
     var result = UpdateUserSubProfile(model);
     return result;
 }