示例#1
0
        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);
        }
示例#2
0
 public List <Note> GetAll()
 {
     return(_noteDal.GetList());
 }