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)); }
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)); }