Ejemplo n.º 1
0
        public async Task <ActionResult> DeleteConfig(string id)
        {
            object ret;

            using (var service = new PeeperService())
            {
                ret = await service.DeleteConfig(id);
            }
            return(Json(ret));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> GetConfigList(DatagridParams data)
        {
            object ret;

            using (var service = new PeeperService())
            {
                ret = await service.GetConfigList(data);
            }
            return(Json(ret));
        }
Ejemplo n.º 3
0
        public async Task <ActionResult> UpdateConfig(ConfigModel model)
        {
            object ret;

            using (var service = new PeeperService())
            {
                ret = await service.UpdateConfig(model);
            }
            return(Json(ret));
        }
Ejemplo n.º 4
0
        public async Task <ActionResult> GetList(string ip, string port, string database, string table, DatagridParams param, string key = "")
        {
            object page = null;

            using (var service = new PeeperService())
            {
                page = await service.GetList(ip, port, database, table, param, key);
            }
            return(Json(page));
        }