/// <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(IDataTablesRequest request, string errorMessage)
 {
     return(DataTablesResponse.Create(request, errorMessage, null));
 }
Пример #2
0
 /// <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(IDataTablesRequest request, int totalRecords, int totalRecordsFiltered, object data)
 {
     return(DataTablesResponse.Create(request, totalRecords, totalRecordsFiltered, data, null));
 }