/// <summary> /// Plan the event in a release /// </summary> /// <param name="str"></param> /// <returns></returns> public static void UpdateStatusForMilestone(this RDeliverableStatus del, RMilestoneStatus ms) { var obj = new DeliverableStatusInputModel { DeliverableId = del.Id, MilestoneId = ms.Id, ReleaseId = ms.Release.Id, Scope = del.Scope.Select( (project) => new ProjectStatusInputModel { Id = project.Id, Workload = project.Workload.Select( (deliv) => new ActivityStatusInputModel { Activity = deliv.Activity, HoursRemaining = deliv.HoursRemaining } ).ToList() }).ToList() }; var rep = new ReleaseRepository(); rep.SaveDeliverableStatus(obj); }
public UpdateMilestoneDeliverableStatus(RDeliverableStatus deliverable, RMilestoneStatus milestone) { _deliverable = deliverable; _milestone = milestone; }