public async Task <IActionResult> GetAccountsAsync([FromQuery] AccountGetModel model) { model.Validate(); var list = await _accountRepository.GetAccountsAsync(model.Keyword, model.Gender, model.IsActive, model.StartDate, model.EndDate, model.Page, model.PageSize); if (list.Items.Count == 0) { throw new NotFound404Exception("page"); } return(Ok(AccountList.GetFrom(list))); }