Example #1
0
        public IActionResult ViewArtist(int id, DateTime TiemSerch, string city)
        {
            var a     = aartistRepository.GetCardArtitById(id);
            var artis = new ArtistExtened
            {
                ArtistType  = (ArtistType)a.ArtistType,
                Id          = id,
                Description = a.Description,
                FullName    = a.FullName,
                Price       = a.Price,
                IimagePath  = Convert.ToBase64String(a.Image)
            };

            ViewData["DateSerach1"] = TiemSerch;
            ViewData["city"]        = city;

            return(View(artis));
        }