private void btnAdd_Click(object sender, EventArgs e)
        {
            if (!ValidateForm())
            {
                return;
            }

            Project newProject = new Project()
            {
                ProjectName = txtProjectName.Text,
                ProjectManager = txtProjectManager.Text,
                ProjectDescription = txtProjectDescription.Text,
                IsActiveProject = !chkDeactivate.Checked
            };

            IProjectService projectService = new ProjectService();
            bool isProjectAdded = projectService.AddNewProject(newProject);

            if (isProjectAdded)
            {
                ClearForm();
                MessageBox.Show("New project added successfully.", "New Project", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
 public static ProjectModel GetProjectModel(Project project)
 {
     return new ProjectModel()
     {
         Id = project.Id,
         ProjectName = project.ProjectName,
         ProjectLocation = project.ProjectLocation,
         ProjectDescription = project.ProjectDescription,
         ProjectManager = project.ProjectManager,
         IsActiveProject = !project.IsActiveProject
     };
 }