Beispiel #1
0
 public ProjectList Get(int items = 10, int page = 1)
 {
     if (items < 1)
     {
         items = 10;
     }
     if (page < 1)
     {
         page = 1;
     }
     return(new ProjectList()
     {
         Items = items,
         Page = page,
         Total = _dao.Total(),
         List = _dao.List(items, page - 1)
     });;
 }