public static void SeedAsync(PrattleDbContext context) { try { context.Database.EnsureCreated(); } catch (Exception ex) { Log.Error($"Error while seeding DB; {ex.Message}"); } }
public CommunicationSvc(PrattleDbContext dbContext, IConfiguration config) { _config = config; _dbContext = dbContext; }
public UserSvc(PrattleDbContext dbContext, IConfiguration config) { _config = config; _dbContext = dbContext; }