public Section AddSection(int projectId, Section section) { var response = Post("add_section/" + projectId, section); return JsonConvert.DeserializeObject<Section>(response); }
public Section UpdateSection(int sectionId, Section updatedSection) { var originalSection = GetSection(sectionId); originalSection.MergeWith(updatedSection); var response = Post("update_section/" + sectionId, originalSection); return JsonConvert.DeserializeObject<Section>(response); }