Пример #1
0
        public void EditProfileArtist(ProfileArtist profileArtist)
        {
            var p = applicationDbContext.ProfileArtists.Where(a => a.IdArtit == profileArtist.IdArtit).FirstOrDefault();

            p = profileArtist;
            applicationDbContext.SaveChanges();
        }
Пример #2
0
 public void AddProfileArtist(ProfileArtist profileArtist)
 {
     applicationDbContext.ProfileArtists.Add(profileArtist);
     applicationDbContext.SaveChanges();
 }
Пример #3
0
 public void DeleteProfileArtist(ProfileArtist profileArtist)
 {
     applicationDbContext.ProfileArtists.Remove(profileArtist);
     applicationDbContext.SaveChanges();
 }