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)); } }
internal IEnumerable <Job> GetAll() { return(_jrepo.GetAll()); }
internal IEnumerable <Job> GetAll() { return(_jobsRepository.GetAll()); }