예제 #1
0
 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
     }));
 }
예제 #2
0
 public async Task Add(AddHomeworkDto homeworkDto)
 {
     Homework homework = _mapper.Map <Homework>(homeworkDto);
     await _homeworkRepository.Add(homework);
 }