public CRUDController() { charRepo = new CharityRepository(); pnRepo = new PartnershipNightRepository(); uRepo = new UserRepository(); lRepo = new BvLocationRepository(); }
// 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(); }
// 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; }
// 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; }
// Use this for dependency injection public CRUDController(BvLocationRepository iLoc, UserInterface iUser, BvLocationInterface iLocation) { lRepo = iLoc; uRepo = iUser; lRepo = iLocation; }
// The default constructor is called by the framework public AdminLocController() { lRepo = new BvLocationRepository(); }
public AccountController(UserManager <ApplicationUser> userManager) { UserManager = userManager; lRepo = new BvLocationRepository(); }
public AccountController() : this(new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(new ApplicationDbContext()))) { lRepo = new BvLocationRepository(); }
// Use this for dependency injection public AdminLocController(BvLocationRepository iLoc) { lRepo = iLoc; }
public AccountController() : this(new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationDbContext()))) { lRepo = new BvLocationRepository(); }
// Use this for dependency injection public AdminUserController(UserInterface iUser, BvLocationInterface iLocation) { uRepo = iUser; lRepo = iLocation; }
// The default constructor is called by the framework public AdminUserController() { uRepo = new UserRepository(); lRepo = new BvLocationRepository(); }
public AccountController(UserManager<ApplicationUser> userManager) { UserManager = userManager; lRepo = new BvLocationRepository(); }