private bool InsertMusteri(string ad, string soyad, int yas, string parola, double kimlikno, int maas, byte ehliyet) { try { using (var MusteriBussines = new MusteriBusiness()) { return(MusteriBussines.InsertMusteri(new Musteri() { 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."); } }