public void AddUser(string userName, string facility) { refreshBOManual = true; facNameManual = facility; FacilityManagementGrid.DataBind(); FacilityMgmt collection = (FacilityMgmt)CurrentBusinessObject; EmployeeInfo ei = new EmployeeInfo(); string SSO = ei.GetUserID(userName); FacilityMgmt_Record record = new FacilityMgmt_Record(); record.DataOwner_Name = userName; record.Facility_Name = facility; record.SSO_Text = "IHESS\\" + SSO; record.AddedBy_Name = HttpContext.Current.User.Identity.Name.ToString(); record.LastUpdate_By = HttpContext.Current.User.Identity.Name.ToString(); record.PrimaryOwner = collection.Count == 0 ? "Y" : "N"; record.Save(); FacilityManagementGrid.DataBind(); }