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); }
public RecruitmentProcessDTO Start(RecruitmentProcessDTO process, string comments) { state = new UnstartedRecruitmentState(); return(state.Execute(process, comments)); }