Esempio n. 1
0
    /// <summary>
    /// Delete the selected groups from DB.
    /// </summary>
    /// <param name="sender">Sender object</param>
    /// <param name="e">Event argument</param>
    protected void Group_DeleteClicked(object sender, ZentityGridEventArgs e)
    {
        if (e.EntityIdList != null && e.EntityIdList.Count > 0)
        {
            using (ResourceDataAccess resourceDAL = new ResourceDataAccess(Utility.CreateContext()))
            {
                Utility.ShowMessage(GridErrorLabel, resourceDAL.DeleteGroups(e.EntityIdList, userToken), true);
            }

            FillGroupGrid();
        }
    }