Example #1
0
 public OkObjectResult OkData <TData>(TData data, int?totalCount)
 {
     return(Ok(ApiResultViewModel <TData> .FromData(data, totalCount)));
 }
Example #2
0
 public CreatedResult CreatedData <TData>(TData data, object meta = null)
 {
     return(Created(string.Empty, ApiResultViewModel <TData> .FromData(data)));
 }
Example #3
0
 public OkObjectResult OkData <TData>(TData data, object meta = null)
 {
     return(Ok(ApiResultViewModel <TData> .FromData(data, meta)));
 }