Exemple #1
0
        public WebResult GetTest(int id, long time)
        {
            WebResult wb = new WebResult();

            try
            {
                var date = new DateTime(time);
                wb.status  = true;
                wb.message = "success";
                wb.value   = TestLogic.GetTest(id, date);
                return(wb);
            }
            catch (Exception e)
            {
                wb.status  = false;
                wb.message = e.Message;
                return(wb);
            }
        }