Exemple #1
0
        public APIReturn _Add([FromForm] uint?Area_id, [FromForm] string Title)
        {
            MarketInfo item = new MarketInfo();

            item.Area_id     = Area_id;
            item.Create_time = DateTime.Now;
            item.Title       = Title;
            item             = Market.Insert(item);
            return(APIReturn.成功.SetData("item", item.ToBson()));
        }