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