Пример #1
0
    public int DeleteValue(Header purchase)
    {
      Bm2s.Connectivity.Common.Trade.Header connect = new Bm2s.Connectivity.Common.Trade.Header();
      connect.Request.Header = purchase;
      connect.Delete();

      return connect.Request.Header.Id;
    }
Пример #2
0
    public HtmlString GetValues()
    {
      Bm2s.Connectivity.Common.Trade.Header connect = new Bm2s.Connectivity.Common.Trade.Header();
      connect.Request.IsPurchase = true;
      connect.Request.IsSell = false;
      connect.Get();

      return connect.Response.Headers.ToHtmlJson();
    }
Пример #3
0
    public HtmlString SetValue(Header purchase)
    {
      Bm2s.Connectivity.Common.Trade.Header connect = new Bm2s.Connectivity.Common.Trade.Header();
      connect.Request.Header = purchase;
      connect.Post();

      SelectListUtils.ForceRefreshListFamily();

      return connect.Response.Headers.FirstOrDefault().ToHtmlJson();
    }