public void DeleteById(int entityID) { Urun urun = _urunDAL.Get(a => a.ID == entityID); _urunDAL.Remove(urun); }
public Urunler GetByUrunId(int urunId) { return(_urunDal.Get(u => u.Id == urunId)); }
public bool Delete(int entityID) { Urun deleted = _urunDAL.Get(a => a.UrunId == entityID); return(_urunDAL.Delete(deleted) > 0); }
public Urun GetById(int urunId) { return(_urunDAL.Get(p => p.Id == urunId, x => x.Kategori)); }