Exemple #1
0
        public IViewComponentResult Invoke()
        {
            string m          = FirstValue();
            var    parsedJson = _jsonService.JSONStringToObject <PackageListItem>(m);

            return(View(model: m));
        }
Exemple #2
0
        public IActionResult Settings(string search = "")
        {
            var profile = _db.Profiles.Single(b => b.IdentityName == User.Identity.Name);

            //var emails = Emails();

            //if (!string.IsNullOrEmpty(search))
            //{
            //	emails = emails.Where(e => e.Contains(search)).ToList();
            //}

            dynamic settings = new SettingsModel();

            settings = _jsonService.JSONStringToObject <SettingsModel>(FirstValue());

            var info = new PackageInfo();

            var model = new AdminSettingsModel
            {
                Profile     = profile,
                Settings    = settings,
                PackageItem = info.GetAttributes()
            };

            return(View("~/Views/Shared/Components/ProjectReference/Settings.cshtml", model));
        }