Beispiel #1
0
 public ActionResult Search(string Search)
 {
     using (Repository <ProductEntity> rep = new RepositoryProduct())
     {
         return(View("Index", rep.Get((p => p.Name_Product.Contains(Search) || p.Description.Contains(Search) || p.Category.Contains(Search) || p.Link_Image.Contains(Search))).ToList()));
     }
 }
Beispiel #2
0
        public EntityProduct GetByID(int FK_ProductID)
        {
            var objRepository = new RepositoryProduct();

            return(objRepository.Get(FK_ProductID));
        }