public ActionResult <ProjectsReadDto> CreateProject(ProjectsCreateDto project)
        {
            if (project != null)
            {
                var ProjectModel = _mapper.Map <Project>(project);
                _repository.CreateProject(ProjectModel);


                var projectReadDto = _mapper.Map <ProjectsReadDto>(ProjectModel);
                return(CreatedAtRoute(nameof(GetProjectById), new { Id = projectReadDto.id }, projectReadDto));
            }

            return(BadRequest());
        }
        public ActionResult UpdateProject(int id, ProjectsCreateDto projectUpdate)
        {
            var ProjectFromDatabase = _repository.getProjectById(id);

            if (ProjectFromDatabase == null)
            {
                return(NotFound());
            }
            _mapper.Map(projectUpdate, ProjectFromDatabase);
            var ProjectModel = _mapper.Map <Project>(ProjectFromDatabase);

            _repository.UpdateProject(ProjectModel);


            return(NoContent());
        }