Example #1
0
 public void DeleteAsset()
 {
     using var dbContext = new ShellFishDbContext();
     dbContext.Remove(SelectedAsset);
     dbContext.SaveChanges();
     Assets.Remove(SelectedAsset);
 }
Example #2
0
        protected override void Save()
        {
            using var dbContext = new ShellFishDbContext();
            dbContext.Blogposts.Add(Asset);
            dbContext.SaveChanges();

            RaiseItemSavedEvent();
        }