Пример #1
0
        public async Task <ActionResult <PublishingBase> > GetPublishing(int advertisingId, int chennelId, string token)
        {
            if (CheckValue(chennelId, nameof(chennelId)) && CheckValue(token, nameof(token)) && CheckValue(advertisingId, nameof(advertisingId)))
            {
                return(BadRequest(string.Format(Messages.NotAllParametersSpecified, Container.ToString())));
            }

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

            if (response == null)
            {
                return(NotFound(Messages.NoEntitiesFoundWithSpecifiedCriteria));
            }

            return(Ok(response));
        }