public object AllProjectList() { RespData proStore = (RespData)Session["projectList"]; foreach (var project in proStore.value) { WorkCounts StoredData = new WorkCounts(); var criticalBug = Workitemlist(project.name); var Build = logic.BuildDetails(project.name); var Release = logic.Release(project.name); var workItemDeadLineList = WorkitemDeadlineGet(project.name); var Buildcount = 0; var ReleaseCount = 0; var criticalBugCount = 0; var workItemDadLineCount = 0; if (Build == null) { Buildcount = 0; } else { Buildcount = Build.Count(); } if (Release == null) { ReleaseCount = 0; } else { ReleaseCount = Release.Count(); } if (criticalBug == null) { criticalBugCount = 0; } else { criticalBugCount = criticalBug.Count(); } if (workItemDeadLineList == null) { workItemDadLineCount = 0; } else { workItemDadLineCount = workItemDeadLineList.Count(); } //var criticalBugCount=criticalBug StoredData = DataStore(project.id, project.name, Buildcount, ReleaseCount, criticalBugCount, workItemDadLineCount); WorkList.Add(StoredData); } string output = JsonConvert.SerializeObject(WorkList); return(output); }
public WorkCounts DataStore1(string id, string name, int buildcount, int releaseCount) { WorkCounts workData = new WorkCounts(); workData.ProjectId = id; workData.ProjectName = name; workData.BuildCount = buildcount; //buildcount.ToString(); workData.ReleaseCount = releaseCount; //releaseCount.ToString(); //throw new NotImplementedException(); return(workData); }
public WorkCounts DataStore2(string id, string name, int criticalBugCount, int workItemDadLineCount) { WorkCounts workData = new WorkCounts(); workData.ProjectId = id; workData.ProjectName = name; workData.CriticalBugCount = criticalBugCount; workData.WorkItemDeadLineCount = workItemDadLineCount.ToString(); //throw new NotImplementedException(); return(workData); }
public object AllDataWorkitem() { RespData proStore1 = (RespData)Session["projectList"]; foreach (var project in proStore1.value) { WorkCounts StoredData = new WorkCounts(); var criticalBug = Workitemlist123(project.name);//Workitemlist(project.name); var workItemDeadLineList = WorkitemDeadlineGet(project.name); var criticalBugCount = 0; var workItemDadLineCount = 0; if (workItemDeadLineList == null) { workItemDadLineCount = 0; } else { workItemDadLineCount = workItemDeadLineList.Count(); } if (criticalBug == null) { criticalBugCount = 0; } else { criticalBugCount = criticalBug.Count(); } //var criticalBugCount=criticalBug StoredData = DataStore2(project.id, project.name, criticalBugCount, workItemDadLineCount); WorkList1.Add(StoredData); } string output = JsonConvert.SerializeObject(WorkList1); return(output); }