Ejemplo n.º 1
0
        public ActionResult GetSystemDate()
        {
            //var data = DateTime.Now;
            //return Json(new { success = true, data = data });

            IDbConnection db = new OrmliteConnection().openConn();
            try
            {
                var data = new CustomModel().GetSystemDate();
                return Json(new { success = true, data = data });
            }
            catch (Exception e)
            {
                return Json(new { success = false, message = e.Message });
            }
            finally { db.Close(); }
        }