public List <VideoModel> GetVideoList(int page, int count) { VideoDao dao = new VideoDao(connectionString); var entities = dao.GetVideos(page, count); var models = new List <VideoModel>(); entities?.ForEach(t => { models.Add(t.TransformTo <VideoModel>()); }); return(models); }