예제 #1
0
 public User[] Get()
 {
     using (var db = new VideoQuizRepository<User>())
         return db.GetAll().ToArray();
 }
예제 #2
0
 // GET: api/VideoApi
 public IEnumerable<LessonFile> Get()
 {
     using (var db = new VideoQuizRepository<LessonFile>())
         return db.GetAll(f => f.FileTypeName == FileType.Video.ToString()).ToArray();
 }