コード例 #1
0
        public RecruitmentProcessDTO Continue(int id, string comments)
        {
            RecruitmentProcessDTO element =
                (from p in db.RecruitmentProcesses
                 where p.RecruitmentProcessId == id
                 select p).FirstOrDefault();

            if (element != null)
            {
                switch (element.State)
                {
                case RecruitmentProcessState.Started:
                    state = new StartedRecruitmentState();
                    break;
                }

                element = state.Execute(element, comments);
            }

            return(element);
        }
コード例 #2
0
 public RecruitmentProcessDTO Start(RecruitmentProcessDTO process, string comments)
 {
     state = new UnstartedRecruitmentState();
     return(state.Execute(process, comments));
 }