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