Exemplo n.º 1
0
        public async Task <LearningPath> Update(Guid Id, [FromBody] LearningPathDTO learningPathDTO)
        {
            var learningPath = new LearningPath(learningPathDTO);
            var result       = await _repository.Update(Id, learningPath);

            return(result);
        }
Exemplo n.º 2
0
        public async Task <LearningPath> Insert([FromBody] LearningPathDTO learningPathDTO)
        {
            var learningPath = new LearningPath(learningPathDTO);
            var result       = await _repository.Insert(learningPath);

            return(result);
        }
Exemplo n.º 3
0
 public LearningPath(LearningPathDTO learningPathDTO)
 {
     Name          = learningPathDTO.Name;
     Description   = learningPathDTO.Description;
     Courses       = learningPathDTO.Courses;
     EmployeeRoles = learningPathDTO.EmployeeRoles;
     Validate();
 }