public IActionResult Details(int id) { var art = _artRepository.GetArtById(id); if (art == null) { return(NotFound()); } return(View(art)); }
public ArtModel GetArt(int id) { return(_artRepository.GetArtById(id)); }