public tblMüsteri musteriGetir(int id) { try { tblMüsteri musteri = uow.MusteriRepository.GetById(id); return(musteri); } catch (Exception) { return(null); } }
public int MusteriEkle(tblMüsteri a) { try { int deger = musteri.musteriEkle(a); return(deger); } catch (Exception) { return(0); } }
public bool musteriSil(tblMüsteri m) { try { uow.MusteriRepository.Remove(m); uow.commit(); return(true); } catch (Exception) { return(false); } }
public bool musteriGuncelle(tblMüsteri m) { try { uow.MusteriRepository.Update(m); uow.commit(); return(true); } catch (Exception) { return(false); } }
public int musteriEkle(tblMüsteri m) { try { uow.MusteriRepository.kullaniciEkle(m); uow.commit(); int deger = uow.MusteriRepository.ıdGetiAd(m.müsteriAdi); if (deger == 0) { return(0); } else { return(deger); } } catch (Exception) { return(0); } }
public bool musteriUpdate(tblMüsteri m) { return(musteri.musteriGuncelle(m)); }
public bool musteriDelete(tblMüsteri m) { return(musteri.musteriSil(m)); }