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); }
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; }
public HomeController(PlateTimeContext db) { this.db = db; Seeder seeder = new Seeder(db); }
//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); }
public PlateTimeRestaurantGoersController(PlateTimeContext context) { _context = context; }
public UserProfileVMRepo(PlateTimeContext db) { this.db = db; }
public PlateTimeRepo(PlateTimeContext db) { this.db = db; }