Пример #1
0
 public static void UpdateOrder(YaOrder order)
 {
     ModulesRepository.ModuleExecuteNonQuery(
         "Update Module.YaMarketOrder Set Status=@Status Where MarketOrderId=@MarketOrderId and OrderId=@OrderId", CommandType.Text,
         new SqlParameter("@MarketOrderId", order.MarketOrderId),
         new SqlParameter("@OrderId", order.OrderId),
         new SqlParameter("@Status", order.Status ?? string.Empty));
 }
Пример #2
0
 public static void AddOrder(YaOrder order)
 {
     ModulesRepository.ModuleExecuteNonQuery(
         "Insert Into Module.YaMarketOrder (MarketOrderId,OrderId,Status) VALUES (@MarketOrderId, @OrderId, @Status)", CommandType.Text,
         new SqlParameter("@MarketOrderId", order.MarketOrderId),
         new SqlParameter("@OrderId", order.OrderId),
         new SqlParameter("@Status", order.Status ?? string.Empty));
 }