Exemplo n.º 1
0
        public ActionResult <Publisher> Get(Guid id)
        {
            var item = _publisherService.AsQueryable()
                       .Where(x => x.Id == id)
                       .FirstOrDefault();

            if (item is null)
            {
                return(NoContent());
            }

            return(Ok(item));
        }