public IList <SelectionDomain> GetSelectionDomains_FFRK_Detailed_WithNames()
        {
            IList <PrizeCategorySpecification> specsFFRKDetailedGuaranteedWithNames =
                GetPrizeCategorySpecifications_FFRK_Detailed_Guaranteed_WithName();

            IList <PrizeSelectionRow> prizeSelectionRowsFFRKDetailedGuaranteedWithNames =
                _prizeSelectionTableHelper.GetPrizeSelectionTable(specsFFRKDetailedGuaranteedWithNames);

            IList <PrizeCategorySpecification> specsFFRKDetailedVariableWithNames =
                GetPrizeCategorySpecifications_FFRK_Detailed_Variable_WithName();

            IList <PrizeSelectionRow> prizeSelectionRowsFFRKDetailedVariableWithNames =
                _prizeSelectionTableHelper.GetPrizeSelectionTable(specsFFRKDetailedVariableWithNames);

            IList <SelectionDomain> selectionDomains = new List <SelectionDomain>()
            {
                new SelectionDomain()
                {
                    PrizesToSelectFromDomainCount = 1,
                    SelectionDomainName           = "Guaranteed",
                    PrizeSelectionTable           = prizeSelectionRowsFFRKDetailedGuaranteedWithNames
                },

                new SelectionDomain()
                {
                    PrizesToSelectFromDomainCount = 10,
                    SelectionDomainName           = "Variable",
                    PrizeSelectionTable           = prizeSelectionRowsFFRKDetailedVariableWithNames
                }
            };

            return(selectionDomains);
        }
Beispiel #2
0
        public IActionResult GetPrizeSelectionTable([FromBody] IList <D.PrizeCategorySpecification> prizeCategorySpecifications)
        {
            IList <D.PrizeSelectionRow> prizeSelectionTable = new List <D.PrizeSelectionRow>();

            if (prizeCategorySpecifications != null && prizeCategorySpecifications.Any())
            {
                IList <PrizeCategorySpecification> model = _mapper.Map <IList <PrizeCategorySpecification> >(prizeCategorySpecifications);

                IList <PrizeSelectionRow> prizeSelectionTableModel = _prizeSelectionTableHelper.GetPrizeSelectionTable(model);

                prizeSelectionTable = _mapper.Map <IList <D.PrizeSelectionRow> >(prizeSelectionTableModel);
            }

            return(new ObjectResult(prizeSelectionTable));
        }