Пример #1
0
        public List <Role> GetRolesList(System.String searchText = null, bool showDeleted = false)
        {
            string Context = this.GetType().FullName.ToString();

            try
            {
                return(RoleIntegration.GetRolesList(searchText, showDeleted));
            }
            catch (Exception ex)
            {
                throw (new Exception(Context, ex));
            }
        }
Пример #2
0
        public int UpdateRole(Role TheRole)
        {
            string Context = this.GetType().FullName.ToString();

            try
            {
                return(RoleIntegration.UpdateRole(TheRole));
            }
            catch (Exception ex)
            {
                throw (new Exception(Context, ex));
            }
        }
Пример #3
0
 public string SendMicroSMS(string phoneNumber, string messageText)
 {
     return(RoleIntegration.SendMicroSMS(phoneNumber, messageText));
 }
Пример #4
0
 public int DeleteRoles(int roleId)
 {
     return(RoleIntegration.DeleteRoles(roleId));
 }
Пример #5
0
 public Role GetRoleById(int roleId)
 {
     return(RoleIntegration.GetRoleById(roleId));
 }
Пример #6
0
        //public Boolean FillRoleList(Control theControl, bool showDeleted = false)
        //{
        //	try
        //	{
        //		if(theControl is DevExpress.XtraEditors.LookUpEdit)
        //		{
        //			((DevExpress.XtraEditors.LookUpEdit)theControl).Properties.DataSource = RolesManagement.GetInstance.GetRoleList(showDeleted);
        //			((DevExpress.XtraEditors.LookUpEdit)theControl).Properties.DisplayMember = DisplayMember;
        //			((DevExpress.XtraEditors.LookUpEdit)theControl).Properties.ValueMember = ValueMember;
        //			((DevExpress.XtraEditors.LookUpEdit)theControl).EditValue = "";
        //		}
        //		else if(theControl is DevExpress.XtraGrid.GridControl)
        //		{
        //			((DevExpress.XtraGrid.GridControl)theControl).DataSource = RolesManagement.GetInstance.GetRoleList(showDeleted);
        //		}

        //		return true;
        //	}
        //	catch
        //	{
        //		return false;
        //	}
        //}

        public List <Role> GetRoleList(bool showDeleted = false)
        {
            return(RoleIntegration.GetRoleList(showDeleted));
        }