Example #1
0
        public void Approve(int processID)
        {
            _processRepository.Approve(processID);

            var process = _processRepository.QueryEager().FirstOrDefault(p => p.Id == processID);

            //var candidate = _candidateRepository.QueryEager().FirstOrDefault(c => c.Id == process.Candidate.Id);
            process.Candidate.Status = SetCandidateStatus(process.Status);
            //_candidateRepository.Update(candidate);

            _unitOfWork.Complete();
        }
Example #2
0
 public void Approve(int processID)
 {
     _processRepository.Approve(processID);
     _unitOfWork.Complete();
 }