Esempio n. 1
0
        public ActionResult GetAccountListData(string chassisNum)
        {
            dynamic accountList = 0;

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

                    accountList = service.GetAccountListData(chassisNum);
                }
            }
            catch (Exception ex)
            {
                ModelState.AddModelError("error", "Something Wrong");
                accountList = null;
                throw ex;
            }
            return(Json(accountList, JsonRequestBehavior.AllowGet));
        }