Esempio n. 1
0
        public ActionResult GetTranfer(string scode, string rcode, double money)
        {
            var serviceClient = new ExampleEAPService.Service1Client();

            serviceClient.TransferMoney(scode, rcode, money);
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
        public ActionResult Login(LoginModel model)
        {
            var serviceClient = new ExampleEAPService.Service1Client();

            serviceClient.GetAccount(model.Code, model.Pass);
            return(RedirectToAction("Index"));
        }
Esempio n. 3
0
        public ActionResult Transfer(string scode)
        {
            var serviceClient = new ExampleEAPService.Service1Client();
            var customer      = serviceClient.GetById(scode);

            return(View(customer));
        }
Esempio n. 4
0
        public ActionResult Index()
        {
            var serviceClient = new ExampleEAPService.Service1Client();

            return(View(serviceClient.GetAllCustomer()));
        }