public async Task <IActionResult> GetByRange( [FromQuery(Name = "page_size")] int page_size, [FromQuery(Name = "page")] int page) { if (page_size == 0 && page == 0) { var result = _service.Get(); return(await ResponseList(result)); } else { var skip = (page - 1) * page_size; var result = _service.Get(skip, page_size); return(await ResponseList(result)); } }
public Secretary Get(long id) { return(_secretaryService.Get(id)); }