//  private ICmnProjectService _CmnProjectService;
 public ChartofAccountController()
 {
     // Session["ModuleId"] = 2;
     var dbfactory = new DatabaseFactory();
     // _CmnProjectService = new CmnProjectService(new CmnProjectRepository(dbfactory), new UnitOfWork(dbfactory));
     _AnFChartOfAccountService = new ChartOfAccountService(new AnFChartOfAccountRepository(dbfactory), new UnitOfWork(dbfactory));
     _AnFOpeningBalanceService = new AnFOpeningBalanceService(new AnFOpeningBalanceRepository(dbfactory), new UnitOfWork(dbfactory));
 }
 public OpeningBalanceController()
 {
     var dbfactory = new DatabaseFactory();
     _AnFOpeningBalanceService = new AnFOpeningBalanceService(new AnFOpeningBalanceRepository(dbfactory), new UnitOfWork(dbfactory));
     _coaService = new ChartOfAccountService(new AnFChartOfAccountRepository(dbfactory), new UnitOfWork(dbfactory));
 }