Ejemplo n.º 1
0
        public ActionResult Capabilities()
        {
            var member = _svc.GetMemberWithCapabilities(User.Identity.GetUserId());
            var skills = _svc.GetSkills();
            var model  = new CapabilitiesViewModel(member, skills);

            return(View(model));
        }
Ejemplo n.º 2
0
        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));
        }