Ejemplo n.º 1
0
        //
        // GET: /Connection/

        public ActionResult Index()
        {
            var connections = ConnectionManage.GetConnections();

            ViewBag.connections = string.Join("\r\n", connections);
            return(View());
        }
Ejemplo n.º 2
0
        public ActionResult Index(string txt)
        {
            var arry = txt.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);

            ConnectionManage.cache = arry.ToList();
            ConnectionManage.Save();
            ViewBag.connections = txt;
            return(View());
        }