Exemple #1
0
        public override bool SaveData()
        {
            DataTable changes = GetSourceChange();

            if (changes != null)
            {
                foreach (DataRow row in DataSource.Rows)
                {
                    if (row.RowState == DataRowState.Added)
                    {
                        if (row["IsAdmin"] == null || row["IsAdmin"] == DBNull.Value)
                        {
                            row["IsAdmin"] = false;
                        }
                    }
                }
                return(service.BatchUpdateUser(DataSource));
            }
            return(true);
        }