Пример #1
0
        // GET: Project/Details/5

        public ActionResult Details(int id)
        {
            ProjectModel project = new ProjectModel();

            ViewBag.isRegistered = pm.isRegistered(id, cookiemanagement.GetCoockieAustetication());
            ViewBag.isRequest    = pm.isRequest(id, cookiemanagement.GetCoockieAustetication());


            var task = tk.GetFromProject(id);

            ViewBag.Task  = task;
            ViewBag.TaskO = task.Where(x => x.isClosed == false).ToList();
            ViewBag.TaskC = task.Where(x => x.isClosed == true).ToList();


            var UtentiRegistratiECofermati = pm.registeredUsers(id);

            ViewBag.UserCofirmed = UtentiRegistratiECofermati.Where(x => x.RequestConfirmed == true).ToList();

            ViewBag.NotCofirmed = UtentiRegistratiECofermati.Where(x => x.RequestConfirmed == false).ToList();



            // project = pm.;
            return(View(pm.getOne(id)));
        }