示例#1
0
        public ActionResult AddCategoryGallery(CategoryGallery category)
        {
            CategoryGalleryDAO dao = new CategoryGalleryDAO();

            dao.AddCategory(category);
            return(View());
        }
示例#2
0
 public void AddCategory(CategoryGallery category)
 {
     db.CategoryGalleries.Add(category);
     db.SaveChanges();
 }