Пример #1
0
        public ActionResult Projects()
        {
            ViewBag.Message = "Your projects page.";

            var projects = _repo.GetProjects().ToList();

            return(View(projects));
        }
Пример #2
0
        public IActionResult ShowProjects()
        {
            var UID = User.FindFirst(ClaimTypes.NameIdentifier).Value;

            ViewBag.P = projectManagerRepository.GetProjects(UID);
            return(View());
        }