当前位置 : 主页 > 网络编程 > JavaScript >

helloworld

来源:互联网 收集:自由互联 发布时间:2021-06-28
gistfile1.txt using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace MvcHelloWorld.Controllers{ public class HelloController : Controller { // GET: Hello public ActionResult Index() {
gistfile1.txt
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcHelloWorld.Controllers
{
    public class HelloController : Controller
    {
        // GET: Hello
        public ActionResult Index()
        {
            return View();
         }
        public string Welcome(string name,int times=1)
            {
            if (name == null)
                return "null";
                string result = "";
                result += "this is the Welcome action method...";
                result += "name:" + name + "";
                result += "times:" + times;
                return result;
            }
        }
    }
网友评论