protected void btnAdd_Click(object sender, EventArgs e) { List <t_LanguageTranslate> list = languageBL.FindAll(x => x.Language == language && x.Noted.Contains("/Supervisor/Admin/CreateUser.aspx")).ToList(); var add_staff_successfully = list.Where(x => x.ControlId.Contains("add_staff_successfully")).FirstOrDefault(); string staffID = cboStaffs.Text; var staff = GetStaff(); var dbStaff = _staffBL.GetStaff(staffID); if (dbStaff == null) { _staffBL.InsertStaff(staff); msg.Text = add_staff_successfully.Contents; ReBind(); } else { _staffBL.UpdateStaff(staff, dbStaff); msg.Text = "Đã cập nhật thông tin nhân viên."; } }