public IEnumerable <Disease.Model.Disease> GetAllDiseasesByBlock(string block)
        {
            DiseaseContext context = HttpContext.RequestServices.GetService(typeof(DiseaseContext)) as DiseaseContext;
            GetAllDiseasesByBlockHandler handler = new GetAllDiseasesByBlockHandler(context);

            return(handler.Handle(block));
        }
        public IEnumerable <Disease.Model.Disease> GetAllDiseasesByCategory(string category)
        {
            DiseaseContext context = HttpContext.RequestServices.GetService(typeof(DiseaseContext)) as DiseaseContext;
            GetAllDiseasesByCategoryHandler handler = new GetAllDiseasesByCategoryHandler(context);

            return(handler.Handle(category));
        }
        public IEnumerable <Disease.Model.Disease> GetDiseaseByICD10Code(string ICD10Code)
        {
            DiseaseContext        context = HttpContext.RequestServices.GetService(typeof(DiseaseContext)) as DiseaseContext;
            GetDiseaseByIdHandler handler = new GetDiseaseByIdHandler(context);

            return(handler.Handle(ICD10Code));
        }
Ejemplo n.º 4
0
 public GetAllDiseasesByCategoryHandler(DiseaseContext context)
 {
     _context = context;
 }
 public DiseaseRepository(DiseaseContext dbContext)
 {
     DbContext = dbContext;
 }
 public GetAllDiseasesByBlockHandler(DiseaseContext context)
 {
     _context = context;
 }
 public GetAllDiseasesByChapterHandler(DiseaseContext context)
 {
     _context = context;
 }
 public GetDiseaseByIdHandler(DiseaseContext context)
 {
     _context = context;
 }