public async Task <IActionResult> update(IdeaVM idea) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { var Idea = idea.GetIdeaFromViewModel(); await _IdeaService.Save(Idea); return(this.Ok(true)); } catch (Exception xcp) { //log exception return(StatusCode((int)HttpStatusCode.InternalServerError)); } }