protected void btnSave_Click(object sender, EventArgs e) { if (JobOpportunity == null) { Job job = new Job(); job.Id = Guid.NewGuid(); job.Title = txtTitle.Text; job.Description = txtDescription.Text; job.FrenchTitle = txtFrenchTitle.Text; job.FrenchDescription = txtFrenchDescription.Text; job.ArabicTitle = txtArabicTitle.Text; job.ArabicDescription = txtArabicDesciption.Text; job.AddJob(); } else { Job job = new Job(); job.Id = JobOpportunity.Id; job.Title = txtTitle.Text; job.Description = txtDescription.Text; job.FrenchTitle = txtFrenchTitle.Text; job.FrenchDescription = txtFrenchDescription.Text; job.ArabicTitle = txtArabicTitle.Text; job.ArabicDescription = txtArabicDesciption.Text; job.UpdateJob(); } pnJob.Visible = false; ClearPanel(); BindGrid(); }
public static void Main() { Department dept = new Department(); dept.AddDepart("HR"); Job jb = new Job(); jb.AddJob("CTO", "Rs-300000", "Rs-500000"); Employee em = new Employee(); em.AddEmplyee("Jawaria", "Fatima Alvi", "*****@*****.**", "0300xxxxxxx", 1, "50000", 2); }