public HttpResponseMessage GerarAgenda(GerarAgendaViewModel model) { try { _serviceAgenda.GerarAgenda(model, base.GetUsuarioLogado().IdClinica, base.GetUsuarioLogado()); return(Request.CreateResponse(HttpStatusCode.OK)); } catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message)); } }