public AgendaModulo() : base("/agenda") { Get["emailpaciente/"] = x => { DateTime dataIni = Convert.ToDateTime(Request.Query["dataIni"].ToString()); DateTime dataFim = Convert.ToDateTime(Request.Query["dataFim"].ToString()); string email = Request.Query["email"].ToString(); var service = new AgendaService(); return Response.AsJson(service.RecuperarAgendaPaciente(dataIni,dataFim,email)); }; }