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))); } }
// GET api/domains?count=# (for portfolio domains) public List <Domain> Get(int count) { return(_domainService.Get(count)); }