Ejemplo n.º 1
0
 // Use this for dependency injection
 public HomeController(UserInterface iUser, PartnershipNightInterface iPn, CharityInterface iChar, BvLocationInterface iLoc, FormInterface iForm)
 {
     uRepo = iUser;
     pnRepo = iPn;
     cRepo = iChar;
     lRepo = iLoc;
     fRepo = iForm;
 }
Ejemplo n.º 2
0
 // The default constructor is called by the framework
 public HomeController()
 {
     uRepo = new UserRepository();
     pnRepo = new PartnershipNightRepository();
     cRepo = new CharityRepository();
     lRepo = new BvLocationRepository();
     fRepo = new FormRepository();
 }
Ejemplo n.º 3
0
 // The default constructor is called by the framework
 public HomeController()
 {
     uRepo  = new UserRepository();
     pnRepo = new PartnershipNightRepository();
     cRepo  = new CharityRepository();
     lRepo  = new BvLocationRepository();
     fRepo  = new FormRepository();
 }
Ejemplo n.º 4
0
 // Use this for dependency injection
 public HomeController(UserInterface iUser, PartnershipNightInterface iPn, CharityInterface iChar, BvLocationInterface iLoc, FormInterface iForm)
 {
     uRepo  = iUser;
     pnRepo = iPn;
     cRepo  = iChar;
     lRepo  = iLoc;
     fRepo  = iForm;
 }
Ejemplo n.º 5
0
 // Use this for dependency injection
 public HomeController(UserInterface iUser, PartnershipNightInterface iPn, CharityInterface iChar, BvLocationInterface iLoc, StatsInfoInterface iStats)
 {
     uRepo = iUser;
     pnRepo = iPn;
     cRepo = iChar;
     lRepo = iLoc;
     sRepo = iStats;
 }