Esempio n. 1
0
        public Entities.shop Add(Entities.shop Shop)
        {
            long?idAux = Shop.id;

            Shop.id = null;
            RestRequest request = this.RequestForAdd("shops", Shop);

            Entities.shop aux = this.Execute <Entities.shop>(request);
            Shop.id = idAux;
            return(this.Get((long)aux.id));
        }
Esempio n. 2
0
        public Entities.shop Add(Entities.shop Shop)
        {
            long?idAux = Shop.id;

            Shop.id = null;
            List <PrestaSharp.Entities.PrestaShopEntity> Entities = new List <PrestaSharp.Entities.PrestaShopEntity>();

            Entities.Add(Shop);
            RestRequest request = this.RequestForAdd("shops", Entities);

            Entities.shop aux = this.Execute <Entities.shop>(request);
            Shop.id = idAux;
            return(this.Get((long)aux.id));
        }
Esempio n. 3
0
 public void Delete(Entities.shop Shop)
 {
     this.Delete((long)Shop.id);
 }
Esempio n. 4
0
        public void Update(Entities.shop Shop)
        {
            RestRequest request = this.RequestForUpdate("shops", Shop.id, Shop);

            this.Execute <Entities.shop>(request);
        }