public async Task <ProjectResponse> UpdateProject(ProjectCriteria project)
        {
            Validator.IsNotNull(project);
            Validator.IsNonEmptyString(project.ExtProjectID);
            Validator.IsEmail(project.NotificationEmails);
            Validator.IsDeviceType(project.Devices);

            string path = string.Format("/projects/{0}", project.ExtProjectID);

            return(await this.RequestAndParseResponse <ProjectResponse>(HttpMethod.Post, path, project).ConfigureAwait(false));
        }
 public async Task <ProjectResponse> CreateProject(ProjectCriteria project)
 {
     Validator.IsNotNull(project);
     Validator.Validate(project);
     return(await this.RequestAndParseResponse <ProjectResponse>(HttpMethod.Post, "/projects", project).ConfigureAwait(false));
 }