internal static RefCustomer CreateInstance() { RefCustomer x = new RefCustomer(); x.Name = "Bill Gates"; x.ZipCode = 98052; return(x); }
public int MusteriDuzenle(Customers cust, RefCustomer copycust, string musteriadi, string musterisoyadi, string telefon, string meslegi, int refid, decimal bakiye, string adres, string detay) { try { cust.CustomerName = musteriadi; cust.CustomerSurname = musterisoyadi; cust.CustomerTelephone = telefon; cust.CustomerOccupotion = meslegi; cust.CustomerAddress = adres; cust.CustomerDetails = detay; cust.CustomerAccount = bakiye; cust.CustomerReference = refid; copycust.RefCustomerName = musteriadi; copycust.RefCustomerSurname = musterisoyadi; Erisim.SubmitChanges(); return(1); } catch (Exception) { return(-1); } }