Пример #1
0
        public ActionResult PaintingDetails()
        {
            paintingId     = Convert.ToInt32(TempData["id"]);
            TempData["id"] = paintingId;
            Painting painting = paintingService.GetPainting(paintingId, colorService);

            return(View(painting));
        }
Пример #2
0
 public VideoModelList GetVideos()
 {
     return(new VideoModelList()
     {
         Videos = _videoRepository.GetAll(50, 0).Select(x => new VideoModel()
         {
             Id = x.Id,
             CategoryId = x.CategoryId,
             DescriptionEn = x.DescriptionEn,
             DescriptionRu = x.DescriptionRu,
             TitleRu = x.TitleRu,
             TitleEn = x.TitleEn,
             Created = x.Created,
             Path = x.Path,
             CoverId = x.CoverId,
             CoverPath = _paintingService.GetPainting(x.CoverId)?.ThumbPath
         }).ToList()
     });
 }