Beispiel #1
0
        public async Task <ActionResult> action()
        {
            var json = new StreamReader(Request.Body).ReadToEnd();
            var data = JsonConvert.DeserializeObject <List <AbuseEntity> >(json);

            await AbuseReport.ProcessAction(_context, data);

            return(Ok(new { status = "success", message = "Operationperformedsuccessfully" }));
        }
        public async Task <ActionResult> action()
        {
            var json = new StreamReader(Request.Body).ReadToEnd();
            var data = JsonConvert.DeserializeObject <List <AbuseEntity> >(json);

            await AbuseReport.ProcessAction(_context, data);

            return(Ok(new { status = "success", message = SiteConfig.generalLocalizer["_records_processed"].Value }));
        }