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