protected override void Seed(Repositories.AppDbContext context) { //var creditCardSubcategory = new Subcategory //{ // Name = "Credit card", // CanEdit = false, // Enabled = true, // Category = new Category // { // Type = "D", // Name = "Payment", // CanEdit = false, // Enabled = true, // } //}; //context.Subcategories.Add(creditCardSubcategory); //context.SaveChanges(); }
public FolderService(Repositories.AppDbContext appContext) { _appContext = appContext; }