public ActionResult ApproveEntity(Guid id) { if (!isAuthenticated()) { return(Json(new { status = "error" })); } Entity entity = (Entity)clientHttp.Get <Entity>(string.Format(@"Entity/{0}", id.ToString())); if (entity != null) { entity.IsApproved = true; var entity_id = clientHttp.Put <Entity>(@"Entity/", id, entity); return(Json(new { status = "success", message_title = "Entidade aprovada com sucesso" })); } return(Json(new { status = "error", message_title = "Erro ao aprovar entidade" })); }