public ActionResult GetAccountTrans(int customerId) { CakesPosRepository cpr = new CakesPosRepository(_connectionString); return(Json(cpr.GetAccountTrans(customerId), JsonRequestBehavior.AllowGet)); }