public Project AddNewProject(Project project)
 {
     var request = BuildPostRequest();
     request.Resource = ProjectsEndpoint;
     request.AddParameter("application/json", project.ToJson(), ParameterType.RequestBody);
     var savedProject = RestClient.ExecuteRequestWithChecks<Project>(request);
     return savedProject;
 }
 Charcoal.Common.Entities.Project ConvertProject(Project project)
 {
     return new Charcoal.Common.Entities.Project
                {
                    Id = project.Id,
                    Title = project.Name,
                    Description = CreateDescription(project),
                    Velocity = project.CurrentVelocity
                };
 }
 public ProjectViewModel(Project project)
 {
     Project = project;
 }
 private string CreateDescription(Project project)
 {
     return string.Format("This project's iteration Length is of {0} weeks, and starts every {0} {1}. The last recorded activity was on {2}", project.IterationLength,project.WeekStartDay, project.LastActivityAt);
 }
 public Project SaveProject(Project project)
 {
     var request = BuildPutRequest();
     request.Resource = string.Format(SingleProjectEndpoint, project.Id);
     request.AddParameter("application/json", project.ToJson(), ParameterType.RequestBody);
     var savedProject = RestClient.ExecuteRequestWithChecks<Project>(request);
     return savedProject;
 }