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)); } }
public int UpdateRole(Role TheRole) { string Context = this.GetType().FullName.ToString(); try { return(RoleIntegration.UpdateRole(TheRole)); } catch (Exception ex) { throw (new Exception(Context, ex)); } }
public string SendMicroSMS(string phoneNumber, string messageText) { return(RoleIntegration.SendMicroSMS(phoneNumber, messageText)); }
public int DeleteRoles(int roleId) { return(RoleIntegration.DeleteRoles(roleId)); }
public Role GetRoleById(int roleId) { return(RoleIntegration.GetRoleById(roleId)); }
//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)); }