예제 #1
0
        public void CreateForumCategory(string name, int orderID = 0)
        {
            if (orderID == 0)
            {
                orderID = _context.ForumCategories.LastOrDefault().OrderID + 1;
            }

            ForumCategories forumCat = new ForumCategories();
            forumCat.Name = name;
            forumCat.OrderID = orderID;
            _context.ForumCategories.Add(forumCat);
            _context.SaveChanges();
        }
예제 #2
0
 public void UpdateForumCategory(ForumCategories fc)
 {
     throw new NotImplementedException();
 }