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