示例#1
0
        public string GetGalleryViewName(string guid)
        {
            Models.Pastephoto p  = new Models.Pastephoto(this.db);
            var      pp          = p.Fetch(guid);
            Settings settingsObj = JsonConvert.DeserializeObject <Settings>(pp.settings);

            return(settingsObj.gallery);
        }
示例#2
0
        public Settings GetSettings(string guid)
        {
            Models.Pastephoto p = new Models.Pastephoto(this.db);
            var pp = p.Fetch(guid);

            if (pp == null)
            {
                return(null);
            }
            Settings settingsObj = JsonConvert.DeserializeObject <Settings>(pp.settings);

            return(settingsObj);
        }