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)); }
public void Delete(Entities.group Group) { this.Delete((long)Group.id); }
public void Update(Entities.group Group) { RestRequest request = this.RequestForUpdate("groups", Group.id, Group); this.Execute <Entities.group>(request); }