public async Task <TemplateResponse> UpdateTemplate(int id, TemplateCriteria template) { string path = string.Format("/templates/quotaPlan/{0}", id); return(await this.RequestAndParseResponse <TemplateResponse>(HttpMethod.Post, path, template).ConfigureAwait(false)); }
public async Task <TemplateResponse> CreateTemplate(TemplateCriteria template) { Validator.IsNotNull(template); Validator.Validate(template); return(await this.RequestAndParseResponse <TemplateResponse>(HttpMethod.Post, "/templates/quotaPlan", template).ConfigureAwait(false)); }