public Guid DecryptUserID(string EncryptUserID, Guid ApplicationID) { if (!header.VerifyCredentials(header.UserName, header.Password, header.Type)) { return(Guid.Empty); } Application app = ApplicationsHelper.GetApplicationInfo(ApplicationID); if (app != null) { string strUserID = Util.Decrypt(EncryptUserID); return(new Guid(strUserID)); } return(Guid.Empty); }
public string GetApplicationInfo(string applicationID) { if (!header.VerifyCredentials(header.UserName, header.Password, header.Type)) { return(string.Empty); } Guid gApplicationID = (Guid)XmlSerializer.Deserialize(applicationID); return(XmlSerializer.Serialize(ApplicationsPublicHelper.GetApplicationInfo(gApplicationID))); }
public string GetDepartmentDepartmentPath(string ancestorDepartmentID, string offspringDepartmentID) { if (!header.VerifyCredentials(header.UserName, header.Password, header.Type)) { return(string.Empty); } Guid gAncestorDepartmentID = (Guid)XmlSerializer.Deserialize(ancestorDepartmentID); Guid gOffspringDepartmentID = (Guid)XmlSerializer.Deserialize(offspringDepartmentID); return(XmlSerializer.Serialize(OrganizationPublicHelper.GetDepartmentDepartmentPath(gAncestorDepartmentID, gOffspringDepartmentID))); }