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