public MedicalController(IServiceProvider serviceProvider, IOptions <MyConfig> config, IHostingEnvironment hostingEnvironment) { this._hostingEnvironment = hostingEnvironment; this.config = config; _medicalService = serviceProvider.GetService <IMedicalService>(); _identityService = serviceProvider.GetService <IIdentityService>(); _validateService = serviceProvider.GetService <IValidateService>(); }
public MedicineController(IMedicalService medicalService) { _medicalService = medicalService; }
public MedicalTransactionsController(IMedicalService medicalService) { _medicalService = medicalService; }