Exemplo n.º 1
0
        public void Delete(MusteriType entity)
        {
            try
            {
                if (entity.mus_kod == "")
                {
                    throw new Exception("Veri Kontrol");
                }

                _vtMusteriAction.Delete(entity);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
Exemplo n.º 2
0
        public void Update(MusteriType musteriType)
        {
            try
            {
                if (musteriType.mus_kod == "" || musteriType.mus_ad == "" || musteriType.mus_adres1 == "" || musteriType.mus_adres2 == "" || musteriType.mus_adres3 == "" || musteriType.mus_email == "" || musteriType.mus_telefon == "")
                {
                    throw new Exception("Veri Kontrol");
                }

                _vtMusteriAction.Update(musteriType);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }