public HttpResponseMessage ExcluirAgendaAguardando() { try { //var clinica = _serviceCadastro.ObterClinicaById(base.GetUsuarioLogado().IdClinica); _service.ExcluirAgendasAnteriores(base.GetUsuarioLogado().IdClinica); return(Request.CreateResponse(HttpStatusCode.OK)); } catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message)); } }