public async Task <ActionResult <PublishingBase> > GetPublishingById(int id, string token) { if (CheckValue(id, nameof(id)) && CheckValue(token, nameof(token))) { return(BadRequest(string.Format(Messages.NotAllParametersSpecified, Container.ToString()))); } var response = await _service.GetPublishingById(id, token); if (response == null) { return(NotFound(Messages.NoEntitiesFoundWithSpecifiedCriteria)); } return(Ok(response)); }