//get a singular object by the id public JournalEntry getJournal(int id) { var journalEntry = _repo.Query <JournalEntry>().Where(j => j.Id == id).FirstOrDefault(); return(journalEntry); }
public List <Product> GetAllProducts() { return(_repo.Query <Product>().ToList()); }
public List <Restaurant> GetRestaurantList() { List <Restaurant> restaurants = _repo.Query <Restaurant>().ToList(); return(restaurants); }
public List <Image> GetAllImages() { return(_repo.Query <Image>().ToList()); }
//Return all Products public List <ServiceRequest> GetAllServiceRequests() { return(_repo.Query <ServiceRequest>().ToList()); }