public Project AddProject(Project project) { var response = Post("add_project", project); return JsonConvert.DeserializeObject<Project>(response); }
public Project UpdateProject(int projectId, Project updatedProject) { var originalProject = GetProject(projectId); originalProject.MergeWith(updatedProject); var response = Post("update_project/" + projectId, originalProject); return JsonConvert.DeserializeObject<Project>(response); }