예제 #1
0
        //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());
 }
예제 #3
0
        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());
 }