public ActionResult <List <Product> > GetAll() { var claims = User.Claims.Select(c => new { c.Type, c.Value }); var products = _repository.GetAllProducts(); return(Ok(products)); }
public ActionResult <List <Product> > GetAll() { var claims = User.Claims.Select(c => new { c.Type, c.Value }); var products = _repository.GetAllProducts(); return(Ok(products)); }