//public HttpResponseMessage SaveData(TestQuery query) public HttpResponseMessage SaveData([FromUri] TestDemo query) { string host_ip = Request.GetClientIpAddress(); string email = query.email; //string content = query.content; //string productName = query.productName ; //string yourName = query.yourName ; //string company = query.company ; //string tel = query.tel; //string msn = query.msn ; string language = query.language; //访问语言 //string recievedId = query.recievedId ;//接受者 //EnquiryService.EnquirySave(host_ip, email, content, productName, yourName, company, tel, msn); List <string> retList = new List <string>(); retList.Add(host_ip); retList.Add(email); //retList.Add(content); //retList.Add(productName); //retList.Add(yourName); //retList.Add(company); //retList.Add(tel); //retList.Add(msn); retList.Add(language); //retList.Add(recievedId); var returnObj = new ResultObject <List <string> >(); returnObj.ReturnData = retList; returnObj.Status = ServerStatus.SaveSuccess; return(Request.CreateResponse <ResultObject <List <string> > >(HttpStatusCode.OK, returnObj)); }
public IActionResult Privacy() { TestDemo testDemo = new TestDemo(); testDemo.TestSQliteCRUD(); return(View()); }
static int TestPrint(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); TestDemo obj = (TestDemo)ToLua.CheckObject <TestDemo>(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.TestPrint(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_name(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TestDemo obj = (TestDemo)o; string arg0 = ToLua.CheckString(L, 2); obj.name = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index name on a nil value")); } }
static int get_name(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TestDemo obj = (TestDemo)o; string ret = obj.name; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index name on a nil value")); } }