Exemplo n.º 1
0
        public Step GetNextStepToComplete(long projectID)
        {
            UpdateSteps(projectID); //makes sure current
            Save();

            var incompleteSteps =
                from st in db.Steps
                orderby st.Step1
                where (st.Complete == false || st.Complete == null)
                select st;

            var nextStep = new Step();

            if (incompleteSteps.Count() == 0)
            {//all steps have been completed
                nextStep.Step1 = 99; //arbitrary number for last step
                nextStep.Description = "All Steps Complete!";

            }
            else
            {
                nextStep = incompleteSteps.First();
            }

            return nextStep;
        }
Exemplo n.º 2
0
 partial void DeleteStep(Step instance);
Exemplo n.º 3
0
 partial void UpdateStep(Step instance);
Exemplo n.º 4
0
 partial void InsertStep(Step instance);