Exemple #1
0
        public async Task <ActionResult <IEnumerable <PublishingBase> > > GetByAdvertisingId(int advertisingId, string token)
        {
            if (CheckValue(advertisingId, nameof(advertisingId)) && CheckValue(token, nameof(token)))
            {
                return(BadRequest(string.Format(Messages.NotAllParametersSpecified, Container.ToString())));
            }

            var response = await _service.GetPublishingByAdvertisingIdAsync(token, advertisingId);

            return(Ok(response));
        }