public static int InsertCategory( string categoryName, string categoryDescription, string categoryImage, string categoryParallax ) { var cat = new Category() { CategoryName = categoryName, CategoryDescription = categoryDescription, CategoryImage = categoryImage, CategoryParallax = categoryParallax }; db.Categories.InsertOnSubmit(cat); db.SubmitChanges(); return 1; }
partial void UpdateCategory(Category instance);
partial void DeleteCategory(Category instance);
partial void InsertCategory(Category instance);