private void SetAccessRights() { try { using (var classUser = new ClassUsers(Global.ConnectionString)) { var result = classUser.GetAccessRights(Global.UserId, _Module); CanEdit = result.CanEdit.Value; } } catch (Exception) { throw; } }
private void SetAccessRights() { try { classUser = new ClassUsers(Global.ConnectionString); var result = classUser.GetAccessRights(Global.UserId, _Module); canView = result.CanView.Value; canAdd = result.CanAdd.Value; canEdit = result.CanEdit.Value; canDelete = result.CanDelete.Value; } catch (Exception) { throw; } }