internal LogicApp() { ArmyDBContext db = new ArmyDB(); // Провайдер базы данных var provider = new LogicProviderDB(LogicProviderDB.databases.mssql); socialNetworksLogic = new SocialNetworksLogic(provider); userLogic = new UserLogic(provider); CountriesLogic = new CountriesLogic(provider); SoldierUnitLogic = new SoldierUnitsLogic(provider); SocStatusesLogic = new SocStatusesLogic(provider); citiesLogic = new CitiesLogic(provider); CrimesLogic = new CrimesLogic(provider); ForeignFriendsLogic = new ForeignFriendsLogic(provider); ExtremistMaterialLogic = new ExtremistMaterialLogic(); GroupLogic = new GroupsLogic(provider); AudiosLogic = new AudiosLogic(provider); }
public GroupsController(IGroupsLogic logic) { this.logic = logic; }