public async Task <IActionResult> Put(string id, [FromBody] IdeaDto idea) { await _ideaService.UpdateAsync(idea); return(Json(new { message = "Idea updated successfully" })); }
public async Task <IActionResult> Put(string id, [FromBody] IdeaDto idea) { await _ideaService.UpdateAsync(idea); return(Json(new { message = "Idea updated successfully" })); }