Exemplo n.º 1
0
        public IActionResult ShowEditProjectManager(string projectManagerId)
        {
            var         projectManager    = projectManagerRepository.GetProjectManager(projectManagerId);
            EditUserDto projectManagerDto = new EditUserDto()
            {
                Id        = projectManager.Id,
                FirstName = projectManager.FirstName,
                LastName  = projectManager.LastName,
                Email     = projectManager.Email,
                Age       = projectManager.Age
            };

            return(View("Edit", projectManagerDto));
        }
        public ActionResult ProjectManagerDetails(int id)
        {
            if (!User.Identity.IsAuthenticated)
            {
                return(RedirectPermanent("/Innovation/Login"));
            }

            ViewModel_ProjectManager model = new ViewModel_ProjectManager();

            model = obj_proj.GetProjectManager(id);
            if (model != null)
            {
                model.idea = id;
            }
            return(View(model));
        }