Ejemplo n.º 1
0
        public ActionResult New(TablaViewModel model)
        {
            WebService1SoapClient client = new WebService1SoapClient();


            var purchase = new Purchase();

            purchase.ID_Purchase   = model.ID_Purchase;
            purchase.ID_Batch      = model.ID_Batch;
            purchase.ID_Person     = model.ID_Person;
            purchase.Date_Purchase = model.Date_Purchase;


            client.AddPurchase(model.ID_Batch, model.ID_Person, model.Date_Purchase);


            return(Redirect("~/Purchase/"));
        }