public void AddCategory(Category c) { ctx.Categories.Add(c); ctx.SaveChanges(); }
static void Main(string[] args) { CategoryRepository crepo = new CategoryRepository(); Category c = new Category { Name = "Bioware"}; }