Example #1
0
        public async Task <ActionResult> load()
        {
            var json = new StreamReader(Request.Body).ReadToEnd();
            var data = JsonConvert.DeserializeObject <BlockIPEntity>(json);

            var _posts   = await BlockIPBLL.LoadItems(_context, data);;
            var _records = 0;

            if (data.id == 0)
            {
                _records = await BlockIPBLL.Count(_context, data);
            }

            return(Ok(new { posts = _posts, records = _records }));
        }