コード例 #1
0
 public async Task <IActionResult> GetVideosByFolder([FromRoute] int folderId, [FromQuery] GetVideosVm model)
 {
     return(this.Ok(await _videoService.GetVideosByFolder(this.CurrentUserId.Value, folderId, model)));
 }
コード例 #2
0
ファイル: VideoService.cs プロジェクト: StasVitAlex/Video
 public async Task <List <VideoVm> > GetVideosByFolder(int userId, long folderId, GetVideosVm model)
 {
     return(_mapper.Map <List <VideoVm> >(await _videoRepository.GetVideosFromFolder(userId, folderId, model.IsArchived)));
 }