示例#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));
        }
示例#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));
        }
示例#3
0
 public void Delete(Entities.shop Shop)
 {
     this.Delete((long)Shop.id);
 }
示例#4
0
        public void Update(Entities.shop Shop)
        {
            RestRequest request = this.RequestForUpdate("shops", Shop.id, Shop);

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