/// <summary> /// 获取Model集合(没有Where条件) /// </summary> /// <returns></returns> public async Task <IEnumerable <T> > GetAllAsync() { return(await modelDal.GetAllAsync()); }
public async Task <List <ProductImage> > GetAllByProductId(int id) { var productImage = await _baseDal.GetAllAsync(x => x.ProductId == id); return(productImage); }
public async Task <List <Order> > GetAllSortedByIdAsync(OrderStatus orderStatus) { return(await _baseDal.GetAllAsync(x => x.Status == orderStatus, x => x.CreateDate)); }
public async Task <List <OrderDetail> > GetByOrderIdAsync(int id) { return(await _baseDal.GetAllAsync(x => x.OrderId == id)); }
public async Task <List <Category> > GetAllByActiveAsync() { var categoriesInDb = await _baseDal.GetAllAsync(x => x.IsActive == true && x.IsDelete == true); return(categoriesInDb); }
public async Task <List <Comment> > GetAllConfirmedByProducdIdAsync(int id) { return(await _baseDal.GetAllAsync(x => x.ProductId == id && x.IsActive == true)); }
public async Task <List <TEntity> > GetAllAsync() { return(await _baseDal.GetAllAsync()); }
public async Task <List <Contact> > GetIncomingByActiveAsync() { return(await _baseDal.GetAllAsync(x => x.IsActive == true && x.MailType == false)); }