Beispiel #1
0
        public ActionResult Index()
        {
            var stickerSets = _stickerService.GetAllStickerSets();

            var model = new StickerSetIndexModel
            {
                StickerSets = stickerSets.Select(p => new StickerSetIndexListModel
                {
                    Id             = p.Id,
                    Title          = p.Title,
                    VkAlbumId      = p.VkAlbumId,
                    CreatedDate    = p.CreatedDate.ToString(CultureInfo.CurrentCulture),
                    SickerCount    = p.Stickers.Count(),
                    AvaliableEmoji = string.Join(" ",
                                                 _emojiService.GetAvaliableStickerSetEmojis(p.Id).Select(s => s.Symbol)),
                    IsPublished = p.IsPublished
                })
            };

            return(View(model));
        }