Пример #1
0
        private void RemoveByFieldConfigurationMode(int fieldConfigurationModeId)
        {
            var data = new FieldConfigurationModeXApplicationRoleDataModel();

            data.FieldConfigurationModeId = fieldConfigurationModeId;
            FieldConfigurationModeXApplicationRoleDataManager.Delete(data, SessionVariables.RequestProfile);
        }
Пример #2
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            try
            {
                string[] deleteIndexList = DeleteIds.Split(',');
                foreach (string index in deleteIndexList)
                {
                    var data = new FieldConfigurationModeXApplicationRoleDataModel();
                    data.FieldConfigurationModeXApplicationRoleId = int.Parse(index);
                    FieldConfigurationModeXApplicationRoleDataManager.Delete(data, SessionVariables.RequestProfile);
                }

                DeleteAndRedirect();
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }
        }