public Entity.ProxyCreditGuaranteeInquiry GetOneTradeFinance(Guid id)
 {
     CacheHelper.ClearCache();
     ProxyCreditGuaranteeInquiry covenant = null;
     AccountService acctService = new AccountService();
     using (Xrm.XrmServiceContext context = new Xrm.XrmServiceContext("Xrm"))
     {
         var c = context.new_creditguaranteerequestSet.Where(i => i.Id == id).FirstOrDefault();
         if (c != null)
         {
             covenant = CRMProxyService.Entity.ObjectConverter.SingleConvertToProxyCreditGuaranteeInquiry(c);
         }
     }
     return covenant;
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            var action = Request.QueryString["action"];
            if (action == "confirming")
            {
                AccountService service = new AccountService();
                var x = service.GetAllConfirmingBanks();
                var ser = new JavaScriptSerializer().Serialize(x);
                Response.AppendHeader("Access-Control-Allow-Origin", "*");
                Response.Write(ser);
            }

            if (action == "issuing")
            {
                AccountService service = new AccountService();
                var x = service.GetAllIssuingBanks();
                var ser = new JavaScriptSerializer().Serialize(x);
                Response.AppendHeader("Access-Control-Allow-Origin", "*");
                Response.Write(ser);
            }
        }