public int MusteriEkle(int UC, string Clientname) { if (!string.IsNullOrEmpty(Clientname) && UC != 0) { Entities.ClientTable nesne = new Entities.ClientTable() { UC = UC, ClientName = Clientname }; return(dll.MusteriEkle(nesne)); } else { return(-1); // eksik parametre hatası } }