// GET: Product
 public ActionResult Index(string name, int id, int?page)
 {
     ViewBag.name = name;
     if (name == "AdvanceSearch")
     {
         return(View(searchcode.SearchAdvance(TempData["Advance_search"] as SearchModel)));
     }
     return(View(code.GetProductList(name, id, page)));
 }
 public IHttpActionResult GetAllProducts()
 {
     return(Ok(code.GetProductList()));
 }