public async Task <IEnumerable <Product> > GetAllAsync(int page, int pageSize) { try { return(await _repositoryProduct.GetAllProductsAsync(page, pageSize)); } catch (Exception) { Notify("Falha ao obter os produtos."); } return(null); }
public async Task <IEnumerable <Product> > GetAllAsync(int page, int pageSize) { try { return(await _repositoryProduct.GetAllProductsAsync(page, pageSize)); } catch (Exception) { Notify("Falha ao obter os produtos."); } return(null); }