public async Task <DataCollection <ClientDto> > GetAll(int page = 1, int take = 10, string clients = "") { IEnumerable <int> Ids = null; if (!string.IsNullOrEmpty(clients)) { Ids = clients.Split(',').Select(x => Convert.ToInt32(x)); } return(await _clientQueryService.GetAllAsync(page, take, Ids)); }
public async Task <DataCollection <ClientDTO> > GetAll(int page = 1, int take = 10, string ids = null) { IEnumerable <int> clients = null; if (!string.IsNullOrEmpty(ids)) { clients = ids.Split(',', StringSplitOptions.RemoveEmptyEntries).Select(x => Convert.ToInt32(x)); } return(await clientQueryService.GetAllAsync(page, take, clients)); }
public async Task <DataCollection <ClientDto> > GetAll(int page = 1, int take = 10, string ids = null) { IEnumerable <int> clients = null; if (!string.IsNullOrEmpty(ids)) { clients = ids.Split(',').Select(x => Convert.ToInt32(x)); } return(await _clients.GetAllAsync(page, take, clients)); }
public async Task <IActionResult> GetAll(int page = 1, int pageSize = 10) => Ok(await _clientQueryService.GetAllAsync(page, pageSize));