/// <summary> /// Actualiza un cliente /// </summary> /// <param name="customerId">Identificador del cliente</param> /// <param name="customer"></param> /// <returns></returns> public Task<Customer> UpdateCustomerAsync(string customerId, Customer customer) { string url = GetUrl("/customers/{0}", customerId); return PutAsync<Customer,Customer>(url, customer); }
/// <summary> /// Añade un nuevo cliente /// </summary> /// <param name="customer"></param> /// <returns></returns> public Task<Customer> AddCustomerAsync(Customer customer) { string url = GetUrl("/customers"); return PostAsync<Customer, Customer>(url, customer); }