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())); }
public FaqtypeInfo Save() { if (this.Id != null) { Faqtype.Update(this); return(this); } return(Faqtype.Insert(this)); }