public Dictionary <string, object> GetLogoImage()
        {
            LogoManager logoManager            = new LogoManager();
            Guid        guid                   = new Guid();
            Dictionary <string, object> result = new Dictionary <string, object>();

            if (logoManager.Exists(UserContext.AssociationNumber, UserContext.UserID))
            {
                result.Add("FileSaveName", Path.Combine(ConfigurationManager.AppSettings[Const.LOGO_IMAGE_URL], string.Format("{0}_{1}.png?{2}", UserContext.UserID, UserContext.AssociationNumber, Guid.NewGuid())));
            }
            else
            {
                result.Add("FileSaveName", string.Empty);
            }

            return(result);
        }
        public Dictionary <string, object> RemoveCustomLogo()
        {
            LogoManager logoManager = new LogoManager();

            Dictionary <string, object> result = new Dictionary <string, object>();

            if (logoManager.Exists(UserContext.AssociationNumber, UserContext.UserID))
            {
                logoManager.Delete(UserContext.AssociationNumber, UserContext.UserID);
                result.Add("Status", "OK");
            }
            else
            {
                result.Add("Status", "NOT EXISTS");
            }

            return(result);
        }
Exemple #3
0
 public bool Exists(string assn, string userId)
 {
     return(_logoManager.Exists(assn, userId));
 }