private static SecurityGroupSecurityFunctionPermission PopulateFromDBDetailsObject(SecurityGroupSecurityFunctionPermissionDetails obj) { SecurityGroupSecurityFunctionPermission objNew = new SecurityGroupSecurityFunctionPermission(); objNew.SecurityGroupSecurityFunctionPermissionId = obj.SecurityGroupSecurityFunctionPermissionId; objNew.SecurityGroupNo = obj.SecurityGroupNo; objNew.SecurityFunctionNo = obj.SecurityFunctionNo; objNew.IsAllowed = obj.IsAllowed; objNew.UpdatedBy = obj.UpdatedBy; objNew.DLUP = obj.DLUP; return(objNew); }
/// <summary> /// GetByGroupAndFunction /// Calls [usp_select_SecurityGroupSecurityFunctionPermission_by_Group_and_Function] /// </summary> public static SecurityGroupSecurityFunctionPermission GetByGroupAndFunction(System.Int32?securityGroupNo, System.Int32?securityFunctionNo) { Rebound.GlobalTrader.DAL.SecurityGroupSecurityFunctionPermissionDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.SecurityGroupSecurityFunctionPermission.GetByGroupAndFunction(securityGroupNo, securityFunctionNo); if (objDetails == null) { return(null); } else { SecurityGroupSecurityFunctionPermission obj = new SecurityGroupSecurityFunctionPermission(); obj.SecurityGroupSecurityFunctionPermissionId = objDetails.SecurityGroupSecurityFunctionPermissionId; obj.SecurityGroupNo = objDetails.SecurityGroupNo; obj.SecurityFunctionNo = objDetails.SecurityFunctionNo; obj.IsAllowed = objDetails.IsAllowed; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; objDetails = null; return(obj); } }