예제 #1
0
 public void RemoveFromTo(Job.JStats remFrom, string fromItem, Job.JStats remTo)
 {
     if (fromItem != "Null")
     {
         AllJobs.Where(x => x.JobStatus == remFrom && x.JobName == fromItem).Single().JobStatus = remTo;
     }
 }
예제 #2
0
        //{ new Job { Id = 1000, JobName = "тестовая запись", JobStatus =Job.JStats.newJob } };


        public IEnumerable <Job> GetJobList(Job.JStats askStats)
        {
            List <Job> _ret;

            _ret = AllJobs.Where(x => x.JobStatus == askStats).ToList <Job>();
            return(_ret);
        }