public async Task <IActionResult> SearchList(string searchValue, long?lastIdeaId) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _ideaService.SearchListAsync(searchValue, lastIdeaId); if (!result.Succeeded) { return(BadRequest(result.Errors)); } return(Ok(result.Value)); }