Пример #1
0
        public ActionResult About(string id)
        {
            ViewBag.Message = "Your application description page.";

            var dictionary = new Dictionary <string, string>();

            if (id != null)
            {
                var record = RepositoryService.GetByID <dynamic>(id);
                foreach (KeyValuePair <string, object> kv in record)
                {
                    dictionary[kv.Key] = kv.Value?.ToString();
                }
            }
            return(View(dictionary));
        }