private void regcbtn_Click(object sender, EventArgs e) { CustomerRepository _CustomerRepository = new CustomerRepository(); bool AdminAddedOrNot = _CustomerRepository.Addcustomer(tbid.Text, tbname.Text, tbpass.Text, tbphone.Text, tbemail.Text, aPictureBox); if (AdminAddedOrNot) { MessageBox.Show("Customer Registered"); } else { MessageBox.Show("Customer Not Registered"); } }
public bool Addcustomer(CustomerModel customerModel) { return(_customerRepository.Addcustomer(customerModel)); }