/// <summary>
 /// Creates a new response instance.
 /// </summary>
 /// <param name="request">The request object.</param>
 /// <param name="errorMessage">Error message.</param>
 /// <returns>The response object.</returns>
 public static DataTablesResponse Create(Core.IDataTablesRequest request, string errorMessage)
 {
     return(DataTablesResponse.Create(request, errorMessage, null));
 }
示例#2
0
 public static Core.IDataTablesResponse CreateResponse(this Core.IDataTablesRequest request, int totalRecords, int totalRecordsFiltered, object data, IDictionary <string, object> additionalParameters)
 {
     return(DataTablesResponse.Create(request, totalRecords, totalRecordsFiltered, data, additionalParameters));
 }
 /// <summary>
 /// Creates a new response instance.
 /// </summary>
 /// <param name="request">The request object.</param>
 /// <param name="totalRecords">Total record count (total records available on database).</param>
 /// <param name="totalRecordsFiltered">Filtered record count (total records available after filtering).</param>
 /// <param name="data">Data object (collection).</param>
 /// <returns>The response object.</returns>
 public static DataTablesResponse Create(Core.IDataTablesRequest request, int totalRecords, int totalRecordsFiltered, object data)
 {
     return(DataTablesResponse.Create(request, totalRecords, totalRecordsFiltered, data, null));
 }
示例#4
0
 public static Core.IDataTablesResponse CreateResponse(this Core.IDataTablesRequest request, string errorMessage, IDictionary <string, object> additionalParameters)
 {
     return(DataTablesResponse.Create(request, errorMessage, additionalParameters));
 }