예제 #1
0
 public UserRoleAccountRepo(PlateTimeContext context,
                            IServiceProvider serviceProvider
                            )
 {
     _context         = context;
     _serviceProvider = serviceProvider;
 }
        public PlateTimesController(PlateTimeContext context, IServiceProvider serviceProvider, UserManager <IdentityUser> userManager)
        {
            _context         = context;
            _serviceProvider = serviceProvider;
            _userManager     = userManager;

            roleRepo = new UserRoleAccountRepo(context, serviceProvider);
            ptRepo   = new PlateTimeRepo(_context);
        }
예제 #3
0
        public RegisterModel(
            UserManager <IdentityUser> userManager,
            SignInManager <IdentityUser> signInManager,
            ILogger <RegisterModel> logger,
            IEmailSender emailSender,
            PlateTimeContext context,
            IServiceProvider serviceProvider,
            IOptions <EmailSettings> emailSettings,
            IConfiguration configuration)
        {
            _userManager     = userManager;
            _signInManager   = signInManager;
            _logger          = logger;
            _emailSender     = emailSender;
            _context         = context;
            _serviceProvider = serviceProvider;
            _configuration   = configuration;

            _emailSettings = emailSettings.Value;
            emailRepo      = new EmailRepo(_emailSettings);

            //emailRepo.SendMail("*****@*****.**", "hello from platetime", @"<p>Thanks for signing up.<p>");
        }
 public RestaurantProfileRepo(PlateTimeContext db)
 {
     this.db = db;
 }
예제 #5
0
 public HomeController(PlateTimeContext db)
 {
     this.db = db;
     Seeder seeder = new Seeder(db);
 }
예제 #6
0
        //public new object ViewBag { get; }

        public UsersController(PlateTimeContext db)
        {
            this.db = db;
            repo    = new UserProfileVMRepo(db);
        }
 public RestaurantProfilesController(PlateTimeContext context)
 {
     db   = context;
     repo = new RestaurantProfileRepo(context);
 }
예제 #8
0
 public PlateTimeRestaurantGoersController(PlateTimeContext context)
 {
     _context = context;
 }
예제 #9
0
 public UserProfileVMRepo(PlateTimeContext db)
 {
     this.db = db;
 }
예제 #10
0
 public PlateTimeRepo(PlateTimeContext db)
 {
     this.db = db;
 }