Example #1
0
 public CharacterFacade(IUnitOfWorkProvider unitOfWorkProvider, ICharacterService characterService,
                        IAttributesService attributesService, IEquipmentService equipmentService, IInventoryService inventoryService) : base(unitOfWorkProvider)
 {
     _characterService  = characterService;
     _attributesService = attributesService;
     _equipmentService  = equipmentService;
 }
        public AttributesTypeLinkController(
            IAttributesTypeLinkService service,
            IAttributesService attributeService,
            ITypeLinkService typeLinkService) : base(service)
        {
            this.service         = service;
            this.typeLinkService = typeLinkService;

            ViewData.Add("AttributeID", new SelectList(attributeService.getAll(), "AttributeID", "description"));
        }
Example #3
0
 public FoodsService(
     IMouthfeelContextFactory mouthfeelContextFactory,
     IIngredientsService ingredients,
     IAttributesService attributes,
     IImagesService images
     )
 {
     _mouthfeelContextFactory = mouthfeelContextFactory;
     _mouthfeel   = _mouthfeelContextFactory.CreateContext();
     _ingredients = ingredients;
     _attributes  = attributes;
     _images      = images;
 }
Example #4
0
 public AttributesFacade(IUnitOfWorkProvider unitOfWorkProvider, IAttributesService attributesService) : base(unitOfWorkProvider)
 {
     _attributesService = attributesService;
 }
Example #5
0
 public MonsterFacade(IUnitOfWorkProvider unitOfWorkProvider, IMonsterService monsterService, IAttributesService attributesService) : base(unitOfWorkProvider)
 {
     _monsterService    = monsterService;
     _attributesService = attributesService;
 }
Example #6
0
 public AttributesController(IAttributesService service) : base(service)
 {
 }
 public async Task <ActionResult <IEnumerable <Attribute> > > GetMiscellaneous
 (
     [FromServices] IAttributesService _attributes
 ) => (await _attributes.GetAttributes(VotableAttributeType.Miscellaneous)).ToList();
 public async Task <ActionResult <IEnumerable <Attribute> > > GetTextures
 (
     [FromServices] IAttributesService _attributes
 ) => (await _attributes.GetAttributes(VotableAttributeType.Texture)).ToList();
Example #9
0
 public AttributeUnitsController(IAttributesService attributesService)
 {
     _attributesService = attributesService;
 }