public async Task <IActionResult> GetList(FilterViewModel model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _ideaService.GetListAsync(model); if (!result.Succeeded) { return(BadRequest(result.Errors)); } return(Ok(result.Value)); }