public ActionResult <Autor> Get(int id) { var autor = repositorioAutores.ObtenerPorId(id); if (autor == null) { return(NotFound()); } return(autor); }
public ActionResult <Autor> Get(int id) { if (User.Identity.IsAuthenticated) { var claims = User.Claims; } var autor = repositorioAutores.ObtenerPorId(id); if (autor == null) { return(NotFound()); } return(autor); }