Пример #1
0
        private Storno CreateStorno(string shopId, string bemerkung)
        {
            Bestellung bestellung = new Bestellung();

            bestellung.ShopId = shopId;
            bestellung.Status = Status.Storniert;

            Storno storno = new Storno(bestellung);

            storno.Bemerkung = bemerkung;

            return(storno);
        }
Пример #2
0
        public void SetStorno(List <ResultTask <Storno> > infos)
        {
            foreach (ResultTask <Storno> task in infos)
            {
                Storno  storno    = task.Item;
                String  BestellNr = storno.Bestellung.ShopId;
                Boolean success   = true;

                if (success)
                {
                    task.OnSuccess(null);
                }
                else
                {
                    List <ItemError> errorList = new List <ItemError>
                    {
                        /* Add your errors here */
                    };

                    task.OnError(errorList);
                }
            }
        }