public ActionResult GetProductInfo(string ProductCode, string Type) { using (PharmacyEntities dc = new PharmacyEntities()) { var result = dc.prSalesProduct(ProductCode, Type).ToList(); return(Json(result, JsonRequestBehavior.AllowGet)); } return(Json("", JsonRequestBehavior.AllowGet)); }