/// <summary>
 /// Save the permission for each role
 /// </summary>
 private void SavePermission()
 {
     try
     {
         _permissionDet.SavePermission(Permission, Role_Name);
         CloseAction();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        /// <summary>
        /// Save the permission for each role
        /// </summary>

        private void SavePermission()
        {
            try
            {
                if (_permissionDet.SavePermission(Permission, Role_Name))
                {
                    System.Windows.Forms.MessageBox.Show("All Permission have been saved successfully!", "SmartPD", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information);
                    if (_closed == false)
                    {
                        _closed = true;
                        CloseAction();
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex.LogException();
            }
        }