public override SearchAllRolesRes Execute(SearchAllRolesReq pServiceRequest) { SearchAllRolesRes wRes = new SearchAllRolesRes(); wRes.BusinessData = new Result(); if (string.IsNullOrEmpty(pServiceRequest.BusinessData.UserName)) { wRes.BusinessData.RolList = FwkMembership.GetAllRoles_FullInfo(pServiceRequest.SecurityProviderName); } else { wRes.BusinessData.RolList = FwkMembership.GetAllRoles_FullInfo(pServiceRequest.BusinessData.UserName, pServiceRequest.SecurityProviderName); } return(wRes); }