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