Exemplo n.º 1
0
        public async Task <ActionResult> getinfo()
        {
            var json   = new StreamReader(Request.Body).ReadToEnd();
            var data   = JsonConvert.DeserializeObject <List <LogEntity> >(json);
            var _posts = await ErrorLgBLL.Load(_context, data[0]);

            return(Ok(new { posts = _posts[0] }));
        }
Exemplo n.º 2
0
        public async Task <ActionResult> load()
        {
            var json     = new StreamReader(Request.Body).ReadToEnd();
            var data     = JsonConvert.DeserializeObject <LogEntity>(json);
            var _posts   = await ErrorLgBLL.Load(_context, data);;
            var _records = 0;

            if (data.id == 0)
            {
                _records = await ErrorLgBLL.Count(_context, data);
            }
            return(Ok(new { posts = _posts, records = _records }));
        }