예제 #1
0
        private static void AddTestData(s17129Context context)
        {
            var appUser = new AppUser
            {
                Email          = "*****@*****.**",
                EmailConfirmed = true,
                UserName       = "******"
            };

            var pass = new PasswordHasher <AppUser>();

            appUser.PasswordHash = pass.HashPassword(appUser, "asd123");


            context.SaveChanges();
        }
예제 #2
0
 public AccountsController(s17129Context context, IConfiguration configuration)
 {
     _context       = context;
     _configuration = configuration;
 }
예제 #3
0
 public ClientsController(s17129Context context)
 {
     _context = context;
 }
예제 #4
0
 public PizzasController(s17129Context context)
 {
     _context = context;
 }
예제 #5
0
 public AdditivesController(s17129Context context)
 {
     _context = context;
 }
예제 #6
0
 public OrdersController(s17129Context context)
 {
     _context = context;
 }