コード例 #1
0
ファイル: InfoController.cs プロジェクト: Sa1ToNice/Dip
        public ViewResult List(string name)
        {
            Info info = _info.getInfo(name);

            string[] mas = info.Desc.Split("\n");

            var inf = new InfoViewModel
            {
                oneInf = info,
                desc   = mas
            };

            ViewBag.Title = "Справочник";
            return(View(inf));
        }