Esempio n. 1
0
        public async Task <ActionResult> AddPromoRewardRequest(PromoRewardRequestModel request)
        {
            var validationResult = _eventValidation.ValidateAddPromoRewardRequest(request);

            if (!validationResult.ValidationResult)
            {
                return(BadRequest(validationResult.ValidationMessage));
            }
            await _eventLogic.AddPromoRewardRequest(request);

            return(Ok(Messages.GetMessageJson(MessageTitles.PromoRewardRequestAdded, CultureParser.GetCultureFromHttpContext(HttpContext))));
        }