public ElectricBillDocument(Guid Id) { var CurrModelType = DataModelProvider.GetModel(_type); CurrModel = (ElectricBill)Activator.CreateInstance(CurrModelType); using (ApplicationContext db = new ApplicationContext()) { var incomeDocType = db.DocumentTypes.Where(d => d.IsIncome); } }
public ElectricBillDocument() { var CurrModelType = DataModelProvider.GetModel(_type); CurrModel = (ElectricBill)Activator.CreateInstance(CurrModelType); }