示例#1
0
        public void CreateCategory(Category Category)
        {
            Person user = Manager.Get <Person>(UC.CurrentUserID);

            Category.CreateMetaInfo(user, UC.IpAddress, UC.ProxyIpAddress);

            FAQ_Dal.AddCategory(Category);
        }
示例#2
0
        public Enum.ErrorCode CreateCategory(String CategoryName, Int32 CommunityId)
        {
            if (CategoryName == "")
            {
                return(Enum.ErrorCode.NoData);
            }
            else
            {
                Category Cat = new Category();
                Cat.Name        = CategoryName;
                Cat.CommunityId = CommunityId;

                Person user = Manager.Get <Person>(UC.CurrentUserID);
                Cat.UpdateMetaInfo(user, UC.IpAddress, UC.ProxyIpAddress);

                FAQ_Dal.AddCategory(Cat);
                return(Enum.ErrorCode.none);
            }
        }