예제 #1
0
        public async Task <bool> CartExistsAsync(int id)
        {
            var cartInDb = await _baseDal.FindByIdAsync(id);

            return(cartInDb == null ? false : true);
        }
예제 #2
0
 public async Task <bool> ProductImageExistsAsync(int id)
 {
     return(await _baseDal.FindByIdAsync(id) == null ? false : true);
 }
예제 #3
0
 public async Task <bool> OrderExistsAsync(int id)
 {
     return(await _baseDal.FindByIdAsync(id) != null);
 }
예제 #4
0
 public async Task <TEntity> FindByIdAsync(int id)
 {
     return(await _baseDal.FindByIdAsync(id));
 }