private List <Musteri> GetAllCustomers() { musteriBusiness = new MusteriBusiness(); var musteriler = musteriBusiness.GetAllCustomers(); return(musteriler); }
public frmMusteri() { InitializeComponent(); musteriBusiness = new MusteriBusiness(); musteriTurBusiness = new MusteriTurBusiness(); degiscekMusteri = new Musteri(); }
private bool UpdateMusteri(int id, string ad, string soyad, int yas, string parola, double kimlikno, int maas, byte ehliyet) { try { using (var musteriBussines = new MusteriBusiness()) { return(musteriBussines.UpdateMusteri(new Musteri() { KullaniciID = id, Ad = ad, Soyad = soyad, Yas = yas, Parola = parola, KimlikNo = kimlikno, Maas = maas, Ehliyet = ehliyet })); } } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("Musteri doesn't exists."); } }
public frmIslem() { InitializeComponent(); evBusiness = new EvBusiness(); kiralananBusiness = new KiralananBusiness(); musteriBusiness = new MusteriBusiness(); satilanBusiness = new SatilanBusiness(); }
private void AddCustomer() { musteriBusiness = new MusteriBusiness(); musteri = new Musteri(); musteri.Ad = txtMAd.Text; musteri.Soyad = txtMSoyad.Text; musteri.TelNo = masktxtTel.Text; musteri.MusteriTurId = int.Parse(cmboxMTur.SelectedValue.ToString()); musteriBusiness.AddCustomer(musteri); }
private Musteri SelectMusteriByID(int ID) { try { using (var musteriBussines = new MusteriBusiness()) { return(musteriBussines.SelectMusteriById(ID)); } } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("Musteri doesn't exists."); } }
private List <Musteri> ListAllMusteri() { try { using (var musteriBussines = new MusteriBusiness()) { List <Musteri> musteri = musteriBussines.SelectAllMusteri(); return(musteri); } } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("Musteri doesn't exists."); } }
private void Update_Datagridview_() { musteriBusiness = new MusteriBusiness(); dataGridView1.DataSource = musteriBusiness.GetAllCustomersDTO(); dataGridView1.Columns["MusteriTur"].Visible = false; }