Exemplo n.º 1
0
        public void Update(UrunType urunType)
        {
            try
            {
                if (urunType.uru_kod == "" || urunType.uru_ad == "" || urunType.uru_birim == "" || urunType.uru_fiyat < 0 || urunType.uru_kdvorani < 0)
                {
                    throw new Exception("Veri Kontrol");
                }

                _vtUrunAction.Update(urunType);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
Exemplo n.º 2
0
        public void Delete(UrunType entity)
        {
            try
            {
                if (entity.uru_kod == "")
                {
                    throw new Exception("Veri Kontrol");
                }

                _vtUrunAction.Delete(entity);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }