public object Get(ReadRespuestaGuia request) { Expression <Func <RespuestaGuia, bool> > f = (r) => !request.Id.IsNullOrEmpty() ? r.Id == request.Id : r.IdDiagnostico == request.IdDiagnostico && (request.IdGuias.Count <= 0 || request.IdGuias.Contains(r.IdGuia)); return(ServiceBase.CreateResponse(Store.GetByQuery <RespuestaGuia> (f))); }
public object Get(SinglePlantilla request) { return(ServiceBase.CreateResponse(Store.Single <Plantilla> (Query <Plantilla> .EQ(q => q.Id, request.Id)))); }
public object Get(ReadPlantilla request) { return(ServiceBase.CreateResponse(Store.Get <Plantilla> (q => q.Id))); }
public object Get(ReadCapitulo request) { return(ServiceBase.CreateResponse( Store.ReadCapitulo(request))); }
public object Get(ReadDescarga request) { return(ServiceBase.CreateResponse(Store.GetByQuery <Descarga> (q => q.IdDiagnostico == request.IdDiagnostico, q => q.Id, "desc"))); }
public object Get(ReadDiagnostico request) { return(ServiceBase.CreateResponse(Store.ReadDiagnostico(request))); }
// TODO: autorizado y con privilegios de operador ( contiene la llave !); public object Get(ReadEmpresa request) { return(ServiceBase.CreateResponse(Store.GetEmpresas(request))); }
public object Get(ReadCuestionario request) { return(ServiceBase.CreateResponse(Store.DownloadCuestionario(request))); }
public object Get(ReadGuia request) { return(ServiceBase.CreateResponse( Store.GetByQuery <Guia> (q => q.IdPlantilla == request.IdPlantilla, q => q.Id))); }
public object Get(ReadPregunta request) { return(ServiceBase.CreateResponse( Store.ReadPregunta(request))); }