コード例 #1
0
        public DataTablesJsonResult(
            DataTablesResponse response,
            string contentType,
            Encoding contentEncoding,
            bool allowJsonThroughHttpGet)
        {
            _contentEncoding = contentEncoding ?? Encoding.UTF8;
            _contentType     = string.Format(contentType ?? DefaultContentType, _contentEncoding.WebName);
            _allowGet        = allowJsonThroughHttpGet;

            _data = response;
        }
コード例 #2
0
 public DataTablesJsonResult(DataTablesResponse response, bool allowJsonThroughHttpGet)
     : this(response, DefaultContentType, DefaultContentEncoding, allowJsonThroughHttpGet)
 {
 }