public void NewAuction(Auction auction, string orderId) { var query = DefineQueryAction("spAgregarSubasta "); query.AddParameter("pIdSubasta", auction.AuctionId, DbType.String); query.AddParameter("pIdPedido", orderId, DbType.String); query = DefineAuctionParameters(auction, query); query.AddParameter("pGuid", Guid.NewGuid().ToString(), DbType.String); query.ExecuteQuery(); Notifier.Notify("maipogrande", "Order", "ChangeStatus", ChangeMessageStatus.Create(orderId, 3)); var xAuction = TransformAuctionToAuctionDto(GetAuctionById(orderId)); Notifier.Notify("maipogrande", "Auction", "AuctionWasCreate", xAuction); }
public void NewOrderDispatch(OrderDispatch orderDispatch) { var query = DefineQueryAction("spAgregarOrdenDespacho "); query.AddParameter("pIdOrden", orderDispatch.DispatchId, DbType.String); query.AddParameter("pIdPedido", orderDispatch.OrderId, DbType.String); query.AddParameter("pFechaRetiro", DateTime.Parse(orderDispatch.DispatchDate), DbType.Date); query.AddParameter("pObservacion", orderDispatch.Observation, DbType.String); query.AddParameter("pIdCliente", orderDispatch.ClientId, DbType.String); query.AddParameter("pIdSeguro", orderDispatch.Safe.SafeId, DbType.Int32); query.AddParameter("pCosto", orderDispatch.DispatchValue, DbType.Double); query.AddParameter("pGuid", Guid.NewGuid().ToString(), DbType.String); query.ExecuteQuery(); OrderDispatchDetailSave(orderDispatch); SendNotificationMail(orderDispatch); queueNotifier.Notify("maipogrande", "Order", "ChangeStatus", ChangeMessageStatus.Create(orderDispatch.OrderId, 5)); }