コード例 #1
0
        // GET: Employee
        public ActionResult Index()
        {
            WebService1SoapClient obj = new WebService1SoapClient();

            ViewBag.result = obj.Add(19, 20);
            ServiceReference2.Service1Client obj1 = new ServiceReference2.Service1Client();
            ViewBag.result2 = obj1.Add(2, 8);
            return(View(db.GetEmployee()));
        }
コード例 #2
0
 public ActionResult Index()
 {
     return(View(db.GetEmployee()));
 }