db607025
Administrator
add pagination
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
namespace MapsModels.DsModels
{
public class PaginationDsM
{
public const string ASC = "ASC";
public const string DESC = "DESC";
public int from { get; set; }
public int perPage { get; set; }
public string sort { get; set; }
public string orderType(){
if(sort.StartsWith("-")){
sort = sort.Substring(1);
return DESC;
}
return ASC;
}
}
}
|