public StudyPlan Add(string name, int year) { var newStudyPlan = new StudyPlan() { Id = new Guid(), Name = name, Year = year }; return(_studyPlanRepository.Add(newStudyPlan)); }
public async Task Add(AddStudyPlanDto studyPlanDto) { StudyPlan studyPlan = _mapper.Map <StudyPlan>(studyPlanDto); await _studyPlanRepository.Add(studyPlan); }