Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public DataTablesJsonResult(DataTablesResponse response, bool allowJsonThroughHttpGet)
     : this(response, DefaultContentType, DefaultContentEncoding, allowJsonThroughHttpGet)
 {
 }