示例#1
0
 public async Task <IEnumerable <Products> > GetAllAsync()
 {
     return(await _productRepository.GetAll());
 }
示例#2
0
 public async Task <ActionResult> GetAll()
 {
     return(Ok(_productRespository.GetAll()));
 }
示例#3
0
 public IEnumerable <Product> GetAll()
 {
     return(_iRespository.GetAll());
 }