コード例 #1
0
 public CRUDController()
 {
     charRepo = new CharityRepository();
     pnRepo = new PartnershipNightRepository();
     uRepo = new UserRepository();
     lRepo = new BvLocationRepository();
 }
コード例 #2
0
 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;
 }
コード例 #8
0
 // 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();
 }
コード例 #10
0
 public AccountController(UserManager <ApplicationUser> userManager)
 {
     UserManager = userManager;
     lRepo       = new BvLocationRepository();
 }
コード例 #11
0
 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;
 }
コード例 #15
0
 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();
 }
コード例 #20
0
 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();
 }