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