Beispiel #1
0
        public ActionResult Create(string region, string info)
        {
            Dictionary <string, object> model = new Dictionary <string, object>();
            Regions foundRegion = Regions.Find(region);
            Info    newInfo     = new Info(info);

            foundRegion.AddInfo(newInfo);
            List <Info> regionInfo = foundRegion.GetInfo();

            model.Add("info", regionInfo);
            model.Add("region", foundRegion);
            return(View("Show", model));
        }