Пример #1
0
 public CRUDController()
 {
     charRepo = new CharityRepository();
     pnRepo = new PartnershipNightRepository();
     uRepo = new UserRepository();
     lRepo = new BvLocationRepository();
 }
 public CRUDController()
 {
     charRepo = new CharityRepository();
     pnRepo   = new PartnershipNightRepository();
     uRepo    = new UserRepository();
     lRepo    = new BvLocationRepository();
 }
Пример #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();
 }
Пример #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;
 }
Пример #5
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();
 }
Пример #6
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;
 }
Пример #7
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;
 }
 // Use this for dependency injection
 public CRUDController(BvLocationRepository iLoc, UserInterface iUser, BvLocationInterface iLocation)
 {
     lRepo = iLoc;
     uRepo = iUser;
     lRepo = iLocation;
 }
Пример #9
0
 // 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();
 }
Пример #12
0
 // Use this for dependency injection
 public CRUDController(BvLocationRepository iLoc, UserInterface iUser, BvLocationInterface iLocation)
 {
     lRepo = iLoc;
     uRepo = iUser;
     lRepo = iLocation;
 }
Пример #13
0
 // Use this for dependency injection
 public AdminLocController(BvLocationRepository iLoc)
 {
     lRepo = iLoc;
 }
Пример #14
0
 // 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();
 }
Пример #16
0
 // Use this for dependency injection
 public AdminUserController(UserInterface iUser, BvLocationInterface iLocation)
 {
     uRepo = iUser;
     lRepo = iLocation;
 }
Пример #17
0
 // The default constructor is called by the framework
 public AdminUserController()
 {
     uRepo = new UserRepository();
     lRepo = new BvLocationRepository();
 }
Пример #18
0
 // Use this for dependency injection
 public AdminUserController(UserInterface iUser, BvLocationInterface iLocation)
 {
     uRepo = iUser;
     lRepo = iLocation;
 }
Пример #19
0
 // 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();
 }
Пример #21
0
 // The default constructor is called by the framework
 public AdminLocController()
 {
     lRepo = new BvLocationRepository();
 }