Esempio n. 1
0
        public async Task <EVETrader.Core.Model.SalesOrder> UpdateAsync(EVETrader.Core.Model.SalesOrder salesOrder)
        {
            var obj = objList.FirstOrDefault(x => x.Id == salesOrder.Id);

            if (obj != null)
            {
                obj.Buyer          = salesOrder.Buyer;
                obj.Trader         = salesOrder.Trader;
                obj.Destination    = salesOrder.Destination;
                obj.estimatedPrice = salesOrder.estimatedPrice;
                obj.Published      = salesOrder.Published;
                obj.Tip            = salesOrder.Tip;
            }

            return(obj);
        }
Esempio n. 2
0
 public async Task <EVETrader.Core.Model.SalesOrder> CreateAsync(EVETrader.Core.Model.SalesOrder salesOrder)
 {
     objList.Add(salesOrder);
     return(salesOrder);
 }