public ScheduleSenderBusiness(ILog logger, EgreetingContext context = null) : base(logger) { if (context == null) { context = new EgreetingContext(); } this.context = context; this.ScheduleSenderRepository = new ScheduleSenderRepository(context); repository = ScheduleSenderRepository; }
public ScheduleSenderBusiness(EgreetingContext context = null) : base() { if (context == null) { context = new DesignTimeDbContextFactory().CreateDbContext(null); } this.context = context; this.ScheduleSenderRepository = new ScheduleSenderRepository(context); repository = ScheduleSenderRepository; }