Example #1
0
        public IActionResult Details(int id)
        {
            var art = _artRepository.GetArtById(id);

            if (art == null)
            {
                return(NotFound());
            }
            return(View(art));
        }
Example #2
0
 public ArtModel GetArt(int id)
 {
     return(_artRepository.GetArtById(id));
 }