Ignore:
Timestamp:
10/28/20 22:06:48 (2 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
993189e
Parents:
1454207
Message:

Change methods & add error controller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/Startup.cs

    r1454207 r6f203af  
    4848            services.AddEntityFrameworkNpgsql().AddDbContext<FarmatikoDataContext>(opt => opt.UseNpgsql(connectionString));
    4949
    50             services.AddTransient<IHealthFacilityRepository, HealthFacilityRepository>();
    51             services.AddTransient<IHealthFacilityService, HealthFacilityService>();
     50            services.AddTransient<IPHRepo, PHRepo>();
     51            services.AddTransient<IRepository, Repository>();
     52            services.AddTransient<IAdminRepo, AdminRepo>();
    5253
    53             services.AddTransient<IHealthcareWorkerRepository, HealthcareWorkerRepository>();
    54             services.AddTransient<IHealthcareWorkerService, HealthcareWorkerService>();
    55 
    56             services.AddTransient<IMedicineRepository, MedicineRepository>();
    57             services.AddTransient<IMedicineService, MedicineService>();
    58 
    59             services.AddTransient<IMedicineListRepository, MedicineListRepository>();
    60             services.AddTransient<IMedicineListService, MedicineListService>();
    61 
    62             services.AddTransient<IPandemicRepository, PandemicRepository>();
    63             services.AddTransient<IPandemicService, PandemicService>();
    64 
    65             services.AddTransient<IPharmacyHeadRepository, PharmacyHeadRepository>();
    66             services.AddTransient<IPharmacyHeadService, PharmacyHeadService>();
    67 
    68             services.AddTransient<IPharmacyRepository, PharmacyRepository>();
    69             services.AddTransient<IPharmacyService, PharmacyService>();
     54            services.AddTransient<IPHService, PHService>();
     55            services.AddTransient<IAdminService, AdminService>();
     56            services.AddTransient<IService, Service>();
    7057
    7158            services.AddTransient<IProcessJSONService, ProcessJSONService>();
Note: See TracChangeset for help on using the changeset viewer.