public GridJsonNetJObjectResult <Project> PendingProjectsGridJsonData(OrganizationPrimaryKey organizationPrimaryKey) { var organization = organizationPrimaryKey.EntityObject; var gridSpec = new ProjectsIncludingLeadImplementingGridSpec(organization, CurrentPerson, true); var gridJsonNetJObjectResult = new GridJsonNetJObjectResult <Project>(organization.GetAllPendingProjects(CurrentPerson), gridSpec); return(gridJsonNetJObjectResult); }
public GridJsonNetJObjectResult <Project> DetailProjectFocusAreaGridJsonData(FocusAreaPrimaryKey focusAreaPrimaryKey) { var focusArea = focusAreaPrimaryKey.EntityObject; var gridSpec = new ProjectsIncludingLeadImplementingGridSpec(CurrentPerson, false); var projects = focusArea.Projects.ToList(); var gridJsonNetJObjectResult = new GridJsonNetJObjectResult <Project>(projects, gridSpec); return(gridJsonNetJObjectResult); }