public static Plan GetPlan(int autoID, string textID) { var planlm = PlanStorage.Get(autoID); var plan = AppStore.PlanRepository.Get(textID); plan.Description = planlm.Description; return(plan); }
public static void DeleteJob(int autoID) { JobLM job = JobStorage.Get(autoID); JobStorage.Delete(autoID); if (job != null && job.PlanAutoID > 0) { PlanLM plan = PlanStorage.Get(job.PlanAutoID); plan.ReferenceCount--; PlanStorage.Save(plan); } }
public static PlanLM GetPlanLM(int autoID) { return(PlanStorage.Get(autoID)); }