internal static WsProfile GetWsProfile(IManProfile imProf, IManWorkspace imWs) { var wsProf = new WsProfile(); wsProf = PopulateCustomAttr(wsProf, imProf); wsProf.IsUnderPreservation = wsProf.Status.IndexOf("UNDER PRESERVATION", StringComparison.OrdinalIgnoreCase) != -1; //wsProf.Status.Equals("UNDER PRESERVATION", StringComparison.OrdinalIgnoreCase); var clientCustAttr = WsUtility.GetWsCustAttr(wsProf.GetType().GetProperty("Client"), wsProf.Client); wsProf.ClientDesc = clientCustAttr == null ? string.Empty : clientCustAttr.Description; if (!string.IsNullOrWhiteSpace(wsProf.Partner)) { wsProf.PartnerDesc = WsUtility.GetWsUser(wsProf.Partner, ImDbType.Active); } if (!string.IsNullOrWhiteSpace(wsProf.Manager)) { wsProf.ManagerDesc = WsUtility.GetWsUser(wsProf.Manager, ImDbType.Active); } //wsProf.WsProfile_TP = GetWsProfile_TP(wsProf.EngNum); //wsProf.KPMGOnly = GetKPMGOnlyFlag(wsProf.EngNum); return(wsProf); }