public Homework Add(Assignments assignment, User student, string link) { return(homeworkRepository.Add(new Homework() { Id = Guid.NewGuid(), Assignment = assignment, StudentId = student, Link = link, Status = true })); }
public async Task Add(AddHomeworkDto homeworkDto) { Homework homework = _mapper.Map <Homework>(homeworkDto); await _homeworkRepository.Add(homework); }