/// <summary> /// Load Release configuration /// </summary> /// <param name="str"></param> /// <returns></returns> public static void LoadPhasesAndMilestonesAndProjects(this RReleasePlanning release) { var rep = new ReleaseRepository(); var rel = rep.GetReleaseSummary(release.Id); release.Milestones.AddRange(rel.Milestones); release.Phases.AddRange(rel.Phases); release.Projects.AddRange(rel.Projects); }
public JsonResult SchedulePhase(ScheduleReleasePhaseInputModel obj) { var uc = new ReschedulePeriod(new Phase { Id = obj.EventId }, obj.StartDate.ToDateTimeFromDutchString(), obj.EndDate.ToDateTimeFromDutchString()); uc.Execute(); var rep = new ReleaseRepository(); var release = rep.GetReleaseSummary(obj.ReleaseId); return this.Json(release, JsonRequestBehavior.AllowGet); }
public JsonResult ScheduleMilestone(ScheduleReleaseEventInputModel obj) { var uc = new PlanMilestone(new Milestone { Id = obj.EventId }, obj.Date.ToDateTimeFromDutchString(), obj.Time); uc.Execute(); var rep = new ReleaseRepository(); var release = rep.GetReleaseSummary(obj.ReleaseId); return this.Json(release, JsonRequestBehavior.AllowGet); }
public JsonResult GetReleaseSummaryById(int id) { var rep = new ReleaseRepository(); var release = rep.GetReleaseSummary(id); return this.Json(release, JsonRequestBehavior.AllowGet); }