Esempio n. 1
0
        public async Task <bool> Update(Customer model)
        {
            var dto = Factory.CreateFrom(model);

            return(await this.Put(string.Format("customers/{0}", dto.Id), dto));
        }
Esempio n. 2
0
        public async Task <bool> Insert(Customer model)
        {
            var dto = Factory.CreateFrom(model);

            return(await this.Post("customers", dto));
        }