public async Task <bool> CartExistsAsync(int id) { var cartInDb = await _baseDal.FindByIdAsync(id); return(cartInDb == null ? false : true); }
public async Task <bool> ProductImageExistsAsync(int id) { return(await _baseDal.FindByIdAsync(id) == null ? false : true); }
public async Task <bool> OrderExistsAsync(int id) { return(await _baseDal.FindByIdAsync(id) != null); }
public async Task <TEntity> FindByIdAsync(int id) { return(await _baseDal.FindByIdAsync(id)); }