public async Task <IEnumerable <Products> > GetAllAsync() { return(await _productRepository.GetAll()); }
public async Task <ActionResult> GetAll() { return(Ok(_productRespository.GetAll())); }
public IEnumerable <Product> GetAll() { return(_iRespository.GetAll()); }