private void CreateService() { var builder = new DbContextOptionsBuilder <SMContext>().UseSqlServer("Server=.\\SQLEXPRESS;Database=MariaDB;Trusted_Connection=True;"); _SMContext = new SMContext(builder.Options); _ICampaign = new HistoryCompaign(_SMContext); }
public HistoryCompaignController(IHistoryCompaign iHistoryCampaign, IExportExcel iExportExcel, SMContext sMContext) { _IHistoryCampaign = iHistoryCampaign; _IExportExcel = iExportExcel; _SMContext = sMContext; }