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))); }
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))); }