예제 #1
0
        public Entities.customer Add(Entities.customer Customer)
        {
            long?idAux = Customer.id;

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

            Entities.Add(Customer);
            RestRequest request = this.RequestForAdd("customers", Entities);

            Entities.customer aux = this.Execute <Entities.customer>(request);
            Customer.id = idAux;
            return(this.Get((long)aux.id));
        }
예제 #2
0
 public void Delete(Entities.customer Customer)
 {
     this.Delete((long)Customer.id);
 }
예제 #3
0
        public void Update(Entities.customer Customer)
        {
            RestRequest request = this.RequestForUpdate("customers", Customer.id, Customer);

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