Ejemplo n.º 1
0
 //Search
 public ActionResult Search(string txtSearch)
 {
     using (BarangDAL bar = new BarangDAL())
     {
         var result = bar.Search(txtSearch).ToList();
         return(View("Index", result));
     }
 }
Ejemplo n.º 2
0
 public ActionResult Search(string txtSearch)
 {
     using (BarangDAL svCat = new BarangDAL())
     {
         var results = svCat.Search(txtSearch).ToList();
         TempData["Pesan"] = Helpers.Message.GetPesan(" ",
                                                      "warning", "Anda mencari " + txtSearch);
         return(View(results));
     }
 }