public void UpdateCurrentFlightPlan(WorkflowPlan plan)
        {
            var entity = new Model.EF.CurrentFlightPlan()
            {
                ActorName = plan.ActorName, PlanState = plan.PlanState, CurrentFlightPlanID = plan.PlanID
            };

            var entry = context.Entry(entity);

            entry.State = EntityState.Unchanged;
            foreach (string propertyName in new string[] { "ActorName", "PlanState" })
            {
                entry.Property(propertyName).IsModified = true;
            }
            context.Configuration.ValidateOnSaveEnabled = false;
            context.SaveChanges();
        }
        public void UpdateRepetPlan(WorkflowPlan plan)
        {
            //  context.Database.UseTransaction(plan.CurrentTransaction);
            var entity = new RepetitivePlan()
            {
                ActorName = plan.ActorName, PlanState = plan.PlanState, RepetPlanID = plan.PlanID
            };
            var entry = context.Entry(entity);

            entry.State = EntityState.Unchanged;
            foreach (string propertyName in new string[] { "ActorName", "PlanState" })
            {
                entry.Property(propertyName).IsModified = true;
            }
            context.Configuration.ValidateOnSaveEnabled = false;
            context.SaveChanges();
        }