/// <summary> /// Update details of given Project /// http://developer.teamwork.com/projects /// </summary> /// <param name="code">code eg: [email protected]</param> /// <param name="projectId"></param> /// <returns>Project ID</returns> public async Task <BaseResponse <ProjectMailResponse> > SetProjectEmailAddressCode(string code, int projectId) { using (var client = new AuthorizedHttpClient(_client)) { return (await client.PutWithReturnObjectAsync("/projects/" + projectId + "/emailaddress.json", new StringContent("{\"emailaddress\": {\"code\":\"" + code + "\"}", Encoding.UTF8))); } }