public List <ProcessJob> GetNewOrPendingJobs() { var jobs = _jobRepository.Get().Where(c => c.Status == PackageStatus.New || c.Status == PackageStatus.Pending); return(jobs.ToList()); }
public ProcessJob GetJob(string code) { var job = _jobRepository.Get().Where(c => c.Code == code).FirstOrDefault(); return(job); }