// GET: Donate
 public TransfusionController()
 {
     _donationAppointmentService = new DonationAppointmentService(new DonationAppointmentRepo());
     _donationService            = new DonationService(new DonationRepo());
     _bloodSeparation            = new BloodSeparationService(new BloodSeparationRepo());
     _thrombocytesService        = new ThrombocytesService(new ThrombocytesRepo());
     _redCellService             = new RedCellService(new RedCellRepo());
     _plasmaService    = new PlasmaService(new PlasmaRepo());
     _labResultService = new LabResultService(new LabResultRepo());
 }
示例#2
0
 public CommonController()
 {
     _cityRepo              = new CityRepo();
     _countyRepo            = new CountyRepo();
     _transfusionCenterRepo = new TransfusionCenterRepo();
     _requestRepo           = new RequestRepo();
     _profileRepo           = new ProfileRepo();
     _appointmentService    = new DonationAppointmentService(new DonationAppointmentRepo());
     _bloodTypeService      = new BloodTypeService(new BloodTypeRepo());
     _notificationService   = new NotificationService();
     _labResultService      = new LabResultService(new LabResultRepo());
     _donationService       = new DonationService(new DonationRepo());
 }
 // GET: Donate
 public DonateController()
 {
     _donationAppointmentService = new DonationAppointmentService(new DonationAppointmentRepo());
     _donationService            = new DonationService(new DonationRepo());
 }