public async Task <ActionResult> getinfo()
        {
            var json   = new StreamReader(Request.Body).ReadToEnd();
            var data   = JsonConvert.DeserializeObject <List <LanguageEntity> >(json);
            var _posts = await LanguageBLLC.LoadItems(_context, data[0]);

            return(Ok(new { posts = _posts[0] }));
        }
        public ActionResult action()
        {
            var json = new StreamReader(Request.Body).ReadToEnd();
            var data = JsonConvert.DeserializeObject <List <LanguageEntity> >(json);

            LanguageBLLC.ProcessAction(_context, data);

            return(Ok(new { status = "success", message = SiteConfig.generalLocalizer["_records_processed"].Value }));
        }
        public async Task <ActionResult> proc()
        {
            var json = new StreamReader(Request.Body).ReadToEnd();
            var data = JsonConvert.DeserializeObject <JGN_Languages>(json);

            data = await LanguageBLLC.Process(_context, data);

            return(Ok(new { status = "success", record = data, message = SiteConfig.generalLocalizer["_records_processed"].Value }));
        }
        public async Task <ActionResult> load()
        {
            var json = new StreamReader(Request.Body).ReadToEnd();
            var data = JsonConvert.DeserializeObject <LanguageEntity>(json);

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

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