public IActionResult Get(uint?id, [FromQuery] string name = null, [FromQuery] int page = 0, [FromQuery] int per_page = int.MaxValue)
 {
     if (per_page == int.MaxValue)
     {
         return(Ok(_domains.Get(id, name)));
     }
     else
     {
         return(Ok(_domains.GetPaged(name, per_page, page)));
     }
 }
예제 #2
0
 // GET api/domains?count=# (for portfolio domains)
 public List <Domain> Get(int count)
 {
     return(_domainService.Get(count));
 }