Exemple #1
0
        public JsonResult downloadData([FromBody] sRowsData sRowsData)
        {
            string clientip = Request.HttpContext.Connection.RemoteIpAddress.ToString().TrimEnd() == "::1" ? "127.0.0.1" : Request.HttpContext.Connection.RemoteIpAddress.ToString().TrimEnd(), userAgent = Request.Headers["user-Agent"].ToString().TrimEnd();

            return(Json(new FilesClass().GetDownloadModels(sRowsData, clientip, userAgent)));
        }
Exemple #2
0
        public JsonResult sOperData([FromBody] sRowsData sRowsData)
        {
            string clientip = Request.HttpContext.Connection.RemoteIpAddress.ToString().TrimEnd() == "::1" ? "127.0.0.1" : Request.HttpContext.Connection.RemoteIpAddress.ToString().TrimEnd();

            return(Json(new ProformClass().GetSoperModels(sRowsData, clientip)));
        }