public ActionResult Register() { var model = new MemberViewModel { Countries = _svc.GetCountries(), Titles = _svc.GetMemberTitles() }; model.SortData(); return View(model); }
public ActionResult General() { var model = new MemberViewModel { User = _svc.GetMember(User.Identity.GetUserId()), Countries = _svc.GetCountries(), Groups = _svc.GetGroups(), SocialMediaLinks = _svc.GetSocialMediaLinks(), Languages = _svc.GetLanguages(), IsGeneralDetailsSave = true }; model.SortData(); return(View(model)); }
public ActionResult General(string memberId) { if (string.IsNullOrEmpty(memberId)) { return(RedirectToAction("Index")); } var model = new MemberViewModel { User = svc.GetMember(memberId), Countries = svc.GetCountries(), Groups = svc.GetGroups(), SocialMediaLinks = svc.GetSocialMediaLinks(), Languages = svc.GetLanguages(), IsGeneralDetailsSave = true }; model.SortData(); ViewBag.MemberId = model.User?.Id; return(View(model)); }