コード例 #1
0
        public ActionResult GetPartyAccountTransaction(int partyID, DateTime fromDate, DateTime toDate)
        {
            dynamic PartyAccountList = 0;

            try
            {
                if (ModelState.IsValid)
                {
                    PapersServiceClient service = new PapersServiceClient();

                    PartyAccountList = service.GetPartyAccountTransaction(partyID, fromDate, toDate);
                }
            }
            catch (Exception ex)
            {
                ModelState.AddModelError("error", "Something Wrong");
                PartyAccountList = null;
                throw ex;
            }
            return(Json(PartyAccountList, JsonRequestBehavior.AllowGet));
            //return Json(null, JsonRequestBehavior.AllowGet);
            // return Json(listVehicles, JsonRequestBehavior.AllowGet);
        }