public IEnumerable <Job> GetJobs()
 {
     return(jobsRepository
            .GetAll()
            .Select(j => j.AutoMapObject <DB.Job, Job>())
            .OrderByDescending(c => c.JobId));
 }
 public ActionResult <IEnumerable <Job> > Get()
 {
     try
     {
         return(Ok(_JobsRepo.GetAll()));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Beispiel #3
0
 internal IEnumerable <Job> GetAll()
 {
     return(_jrepo.GetAll());
 }
Beispiel #4
0
 internal IEnumerable <Job> GetAll()
 {
     return(_jobsRepository.GetAll());
 }