public HttpResponseMessage ConfirmarAtendimento(int idagenda) { try { _serviceAgenda.ConfirmarAtendimento(idagenda, base.GetUsuarioLogado().IdUsuario); return(Request.CreateResponse(HttpStatusCode.OK)); } catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message)); } }