Exemplo n.º 1
0
        public ActionResult Send()
        {
            WebView.WebService._base myWebService;
            myWebService = new WebService._base();

            UserSendModel.ViewModel model = new UserSendModel.ViewModel {
                AvailableProducts = myWebService.getUser(0, 100), RequestedProducts = new List <UserSendModel.User>(), ListSend = new List <int>()
            };

            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult Send(UserSendModel.ViewModel m)
        {
            WebView.WebService._base myWebService;
            myWebService = new WebService._base();

            List <int> list = new List <int>();

            for (int i = 0; i < m.RequestedSelected.Length; i++)
            {
                list.Add(m.RequestedSelected[i]);
            }
            UserSendModel.ViewModel model = new UserSendModel.ViewModel {
                AvailableProducts = myWebService.getUser(0, 100), RequestedProducts = new List <UserSendModel.User>(), ListSend = list
            };
            return(View(model));
        }