public IActionResult Index() { var a = aartistRepository.GetArtitByUserNmae(User.Identity.Name); if (a != null) { var p = aartistRepository.GetProfileArtistByIdAtris(a.Id); if (p != null) { var pv = new ViewModels.ProfileArtist() { FullName = p.FullName, Description = p.About, Image = Convert.ToBase64String(p.ImageProfile) }; return(View(pv)); } return(View()); } return(RedirectToAction("ArtistCard")); }