コード例 #1
0
        public Entities.group Add(Entities.group Group)
        {
            long?idAux = Group.id;

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

            Entities.Add(Group);
            RestRequest request = this.RequestForAdd("groups", Entities);

            Entities.group aux = this.Execute <Entities.group>(request);
            Group.id = idAux;
            return(this.Get((long)aux.id));
        }
コード例 #2
0
 public void Delete(Entities.group Group)
 {
     this.Delete((long)Group.id);
 }
コード例 #3
0
        public void Update(Entities.group Group)
        {
            RestRequest request = this.RequestForUpdate("groups", Group.id, Group);

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