public static GrpcPagination Present(PaginationOut @out) { return(new GrpcPagination() { Offset = @out.Offset, Limit = @out.Limit, Total = @out.Total }); }
public static GrpcPaginationOut Present(PaginationOut pagination) { try { return(new GrpcPaginationOut() { Limit = pagination.Limit, Offset = pagination.Offset, Total = (int)pagination.Total }); } catch (Exception) { throw; } }