コード例 #1
0
        public ActionResult GetAccountListData()
        {
            dynamic accountList = 0;

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

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