Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public FolderService(Repositories.AppDbContext appContext)
 {
     _appContext = appContext;
 }