示例#1
0
        public APIReturn _Add([FromForm] byte?Sort, [FromForm] string Title)
        {
            FaqtypeInfo item = new FaqtypeInfo();

            item.Sort  = Sort;
            item.Title = Title;
            item       = Faqtype.Insert(item);
            return(APIReturn.成功.SetData("item", item.ToBson()));
        }
示例#2
0
 public FaqtypeInfo Save()
 {
     if (this.Id != null)
     {
         Faqtype.Update(this);
         return(this);
     }
     return(Faqtype.Insert(this));
 }