public ActionResult GetProduct(int productId) { CakesPosRepository cpr = new CakesPosRepository(_connectionString); return(Json((cpr.GetProductById(productId)), JsonRequestBehavior.AllowGet)); }
public ActionResult GetProduct(int productId) { CakesPosRepository cpr = new CakesPosRepository(_connectionString); return(Json((cpr.GetProductById(productId)), JsonRequestBehavior.AllowGet)); }