public async Task <IActionResult> GetDetail(long ideaId) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _ideaService.GetDetailAsync(ideaId); if (!result.Succeeded) { return(BadRequest(result.Errors)); } return(Ok(result.Value)); }