public ActionResult VideoPageRecommended(long?id) { IEnumerable <Video> videos = null; var userType = (string)Session["loggedInUserUserType"]; if (userType == "ADMIN") { videos = _videosRepository.GetNRandomVideosWithout(6, (long)id); } else { videos = _videosRepository.GetNRandomPublicVideosWithout(6, (long)id); } IEnumerable <VideoDTO> videosDTO = VideoDTO.ConvertCollectionVideoToDTO(videos); return(PartialView(videosDTO)); }