public ActionResult Capabilities() { var member = _svc.GetMemberWithCapabilities(User.Identity.GetUserId()); var skills = _svc.GetSkills(); var model = new CapabilitiesViewModel(member, skills); return(View(model)); }
public ActionResult Capabilities(string memberId) { if (string.IsNullOrEmpty(memberId)) { return(RedirectToAction("Index")); } var member = svc.GetMemberWithCapabilities(memberId); var skills = svc.GetSkills(); var model = new CapabilitiesViewModel(member, skills); ViewBag.MemberId = memberId; return(View(model)); }