public ActionResult Create(ProjectModel projectModel)
        {
            if (!ModelState.IsValid)
                return View(projectModel);

            try
            {
                var project = ModelMapper.GetProject(projectModel);
                projectService.AddNewProject(project);
                return RedirectToAction("Index");
            }
            catch (Exception)
            {
                throw;
            }
        }
        public ActionResult Edit(ProjectModel projectModel)
        {
            if (!ModelState.IsValid)
                return View(projectModel);

            try
            {
                Project project = ModelMapper.GetProject(projectModel);
                projectService.UpdateProject(project);
                return RedirectToAction("Index");
            }
            catch (Exception)
            {
                throw;
            }
        }
 public static Project GetProject(ProjectModel model)
 {
     return new Project()
     {
         Id = model.Id,
         ProjectName = model.ProjectName,
         ProjectLocation = model.ProjectLocation,
         ProjectDescription = model.ProjectDescription,
         ProjectManager = model.ProjectManager,
         IsActiveProject = !model.IsActiveProject
     };
 }