public ProjectHubSessions(int ProjectID, dynamic Session, string ConnectionID)
        {
            this.ProjectID = ProjectID;
            using (MVCTaskMasterAppDataEntities2 DB = new MVCTaskMasterAppDataEntities2())
            {
                using (ObjectResult <SelectProjectByID_Result> oj = DB.SelectProjectByID(ProjectID))
                {
                    ProjectOverView = oj.First();
                }

                ProjectTasks = new Project_Tasks_And_Links(DB, ProjectID);


                AddSession(Session, ConnectionID);
                UsersConnected[ConnectionID]["Permission"] = DB.ValidateWithProjectViewPriv((int)UsersConnected[ConnectionID]["SessionUserID"], (string)UsersConnected[ConnectionID]["SessionCode"], ProjectID);
            }
        }
Ejemplo n.º 2
0
        public JsonResult ProjectsTaskData(int ID)
        {
            Project_Tasks_And_Links Return = new Project_Tasks_And_Links(DB, ID);

            return(Json(Return, JsonRequestBehavior.AllowGet));
        }