public async Task <LearningPath> Update(Guid Id, [FromBody] LearningPathDTO learningPathDTO) { var learningPath = new LearningPath(learningPathDTO); var result = await _repository.Update(Id, learningPath); return(result); }
public async Task <LearningPath> Insert([FromBody] LearningPathDTO learningPathDTO) { var learningPath = new LearningPath(learningPathDTO); var result = await _repository.Insert(learningPath); return(result); }
public LearningPath(LearningPathDTO learningPathDTO) { Name = learningPathDTO.Name; Description = learningPathDTO.Description; Courses = learningPathDTO.Courses; EmployeeRoles = learningPathDTO.EmployeeRoles; Validate(); }