public IActionResult SaveProfile(ViewModels.ProfileArtist profileArtist)
        {
            var a = aartistRepository.GetArtitByUserNmae(User.Identity.Name);



            byte[] fileBytes = new byte[] { };
            if (profileArtist.FileImg != null)
            {
                using (var ms = new MemoryStream())
                {
                    profileArtist.FileImg.CopyTo(ms);
                    fileBytes = ms.ToArray();
                    string s = Convert.ToBase64String(fileBytes);
                    // act on the Base64 data
                }
            }

            var p = aartistRepository.GetProfileArtistByIdAtris(a.Id);

            if (p == null)
            {
                aartistRepository.AddProfileArtist(
                    new Data.ModelsData.ProfileArtist
                {
                    ImageProfile = fileBytes.Length > 1 ? fileBytes : null,

                    About    = profileArtist.Description,
                    IdArtit  = a.Id,
                    FullName = profileArtist.FullName
                });
            }
            else
            {
                if (fileBytes.Length > 1)
                {
                    p.ImageProfile = fileBytes;
                }
                p.About    = profileArtist.Description;
                p.FullName = profileArtist.FullName;
                aartistRepository.EditProfileArtist(p);
            }
            return(RedirectToAction("Index"));
        }