Beispiel #1
0
        public ActionResult <Genre> Get(Guid id)
        {
            var item = _genreService.AsQueryable()
                       .Where(x => x.Id == id)
                       .FirstOrDefault();

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

            return(Ok(item));
        }