/// <summary> /// Handle create project api call /// </summary> /// <param name="project"> Project model of the new project</param> /// <returns>Boolean true if the call was a success false when something went wrong</returns> public bool CreateProject(ProjectModel project) { if (string.IsNullOrEmpty(project.Title) || string.IsNullOrEmpty(project.Deadline)) { MessageBox.Show("Don't leave the fields empty"); return(false); } var response = Post <ProjectModel>("/api/v2/projects", project); if (_responseHandler.CheckForErrorResponseProject(response)) { return(true); } MessageBox.Show("Error project name already exists"); return(false); }