public static void Initialize(LaprTrackrContext context) { context.Database.EnsureCreated(); if (context.Users.Any()) { return; } context.Users.AddRange(new User() { Username = "******", Password = "******", Email = "*****@*****.**", Role = UserRoles.Admin, CreatedAt = DateTime.Now, LastUpdatedAt = DateTime.Now }); context.SaveChanges(); }
public FoodService(LaprTrackrContext context) { _context = context; }
public UserService(LaprTrackrContext context) { _context = context; }
public EatsService(LaprTrackrContext context) { _context = context; }
public AuthService(IConfiguration config, LaprTrackrContext context) { _config = config; _context = context; }