private static void WorkWithDoctor() { var service = _serviceProvider.GetRequiredService <IService <Doctor, int> >(); var controller = new DoctorsController(service); controller.Start(); }
private static void WorkWithDoctor() { var service = _serviceProvider.GetRequiredService <IService <Doctor, int> >(); var controller = new DoctorsController(service); controller.Start(); }