예제 #1
0
파일: BaseBLL.cs 프로젝트: yimison/LoTCode
 /// <summary>
 /// 获取Model集合(没有Where条件)
 /// </summary>
 /// <returns></returns>
 public async Task <IEnumerable <T> > GetAllAsync()
 {
     return(await modelDal.GetAllAsync());
 }
예제 #2
0
        public async Task <List <ProductImage> > GetAllByProductId(int id)
        {
            var productImage = await _baseDal.GetAllAsync(x => x.ProductId == id);

            return(productImage);
        }
예제 #3
0
 public async Task <List <Order> > GetAllSortedByIdAsync(OrderStatus orderStatus)
 {
     return(await _baseDal.GetAllAsync(x => x.Status == orderStatus, x => x.CreateDate));
 }
예제 #4
0
 public async Task <List <OrderDetail> > GetByOrderIdAsync(int id)
 {
     return(await _baseDal.GetAllAsync(x => x.OrderId == id));
 }
예제 #5
0
        public async Task <List <Category> > GetAllByActiveAsync()
        {
            var categoriesInDb = await _baseDal.GetAllAsync(x => x.IsActive == true && x.IsDelete == true);

            return(categoriesInDb);
        }
예제 #6
0
 public async Task <List <Comment> > GetAllConfirmedByProducdIdAsync(int id)
 {
     return(await _baseDal.GetAllAsync(x => x.ProductId == id && x.IsActive == true));
 }
예제 #7
0
 public async Task <List <TEntity> > GetAllAsync()
 {
     return(await _baseDal.GetAllAsync());
 }
예제 #8
0
 public async Task <List <Contact> > GetIncomingByActiveAsync()
 {
     return(await _baseDal.GetAllAsync(x => x.IsActive == true && x.MailType == false));
 }