Exemple #1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            FillEntity();
            bool b = coordinatorRepo.CoordinatorRegistration(coordinator);
            bool d = hospitalRepo.HospitalNameAdd(hospital);

            if (b && d == true)
            {
                MessageBox.Show("Update Done");
            }
            else
            {
                MessageBox.Show("Update Failed");
            }
        }
Exemple #2
0
        private void btnRegistration_Click(object sender, EventArgs e)
        {
            this.FillEntity();
            bool d = coordinatorRepo.CoordinatorRegistration(coordinator);
            bool h = hospitalRepo.HospitalNameAdd(hospital);
            bool n = hospitalRepo.CoordinatorHospitalTable(coordinator, hospital);


            if (d == true && h == true && n == true)
            {
                MessageBox.Show("Insert Done");
            }
            else
            {
                MessageBox.Show("Insert Not Done");
            }
        }