public bool insertCustomer(string name, int telephone, string email, string gender, string addedDate) { try { customerDetailsTB newCustomer = new customerDetailsTB(); newCustomer.name = name; newCustomer.telephone = telephone; newCustomer.email = email; newCustomer.gender = gender; newCustomer.addedDate = addedDate; myCashDB.customerDetailsTBs.InsertOnSubmit(newCustomer); myCashDB.SubmitChanges(); return(true); } catch { return(false); } }
partial void DeletecustomerDetailsTB(customerDetailsTB instance);
partial void UpdatecustomerDetailsTB(customerDetailsTB instance);
partial void InsertcustomerDetailsTB(customerDetailsTB instance);