public static async Task MainAsync() { //Set up DataContext and AutoMapper DataContext _context = new DataContext(); // TODO: use _context within a "using" statement to preserve memory Mapper _mapper = ConfigureMapper(); //Declare Controllers: PotionController _potionController; WeaponController _weaponController; ArmorController _armorController; CharacterController _characterController; //Configure Controllers: ConfigureControllers(_context, _mapper, out _potionController, out _weaponController, out _armorController, out _characterController); var potion = await _potionController.GetEntity(1); var weapon = await _weaponController.GetEntity(1); var armor = await _armorController.GetEntity(1); EnemyEntity character = await _characterController.GetEntity <EnemyEntity>(1); PlayerEntity player = await _characterController.GetEntity <PlayerEntity>(999); var potionSet = await _potionController.GetRandomSet(3); var weaponSet = await _weaponController.GetRandomSet(3); var armorSet = await _weaponController.GetRandomSet(3); Console.WriteLine(potion.ToString()); Console.WriteLine(weapon.ToString()); Console.WriteLine(armor.ToString()); Console.WriteLine(character.ToString()); Console.WriteLine(player.ToString()); }