Ejemplo n.º 1
0
        public ResultWithPaginatedData <TViewModel> Return <TViewModel>(PaginatedData <TViewModel> data)
        {
            var result = new ResultWithPaginatedData <TViewModel>(data);

            return(result);
        }
 public static IActionResult ReturnResponseFromResultWithPaginatedData <T>(this HopControllerBase controller, ResultWithPaginatedData <T> content)
 {
     return(ReturnResponseFromResult(controller, content));
 }
Ejemplo n.º 3
0
        public ResultWithPaginatedData <TViewModel> Return <TViewModel>(int currentPage, int total, int perPage, IEnumerable <TViewModel> data)
        {
            var result = new ResultWithPaginatedData <TViewModel>(currentPage, total, perPage, data);

            return(result);
        }
Ejemplo n.º 4
0
 public static IActionResult ReturnResponseFromResultWithPaginatedData <T>(this HttpContext httpContext, ResultWithPaginatedData <T> content)
 {
     return(ReturnResponseFromResult(httpContext, content));
 }