예제 #1
0
 async public Task <CategoryInfo> AddCategoryAsync(CategoryInfo item)
 {
     item.Parent_id = this.Id;
     return(await BLL.Category.InsertAsync(item));
 }
예제 #2
0
 public CategoryInfo AddCategory(CategoryInfo item)
 {
     item.Parent_id = this.Id;
     return(BLL.Category.Insert(item));
 }