public async Task <IActionResult> Like([FromBody] LikeViewModel model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _ideaService.LikeAsync(model); if (!result.Succeeded) { return(BadRequest(result.Errors)); } return(Ok()); }