public CategoryVM()
 {
     category = new Category();
 }
        public void CreateCategories()
        {
            context.Database.ExecuteSqlCommand("TRUNCATE TABLE [Category]");

            Category c;
            foreach (var item in categories) {
                c = new Category();
                c.CategoryName = item;
                context.Category.Add(c);
            }
            context.SaveChanges();
        }