public FaqdescInfo Save() { if (this.Faq_id != null) { Faqdesc.Update(this); return(this); } return(Faqdesc.Insert(this)); }
public APIReturn _Add([FromForm] uint?Faq_id, [FromForm] string Content) { FaqdescInfo item = new FaqdescInfo(); item.Faq_id = Faq_id; item.Content = Content; item = Faqdesc.Insert(item); return(APIReturn.成功.SetData("item", item.ToBson())); }
public FaqdescInfo AddFaqdesc(string Content) => Faqdesc.Insert(new FaqdescInfo { Faq_id = this.Id, Content = Content });