public List <NoteDto> GetAll(Expression <Func <Note, bool> > condition = null) { var noteList = new List <NoteDto>(); var notes = _noteDal.GetList(condition); foreach (var item in notes) { var note = new NoteDto() { Id = item.Id, Vize = item.Vize, Final = item.final, LessonId = item.LessonId, StudentId = item.StudentId, }; noteList.Add(note); } return(noteList); }
public List <Note> GetAll() { return(_noteDal.GetList()); }