示例#1
0
        public ActionResult Create(ProformaWS.Proforma proforma)
        {
            try
            {
                ProformaWS.ProformaServiceClient proxy = new ProformaWS.ProformaServiceClient();
                proxy.Agregar(proforma);

                ViewBag.message = "Creado";

                return(View("Index", proxy.Listar().ToList()));
            }
            catch
            {
                return(View());
            }
        }
示例#2
0
        //
        // GET: /Proforma/

        public ActionResult Index()
        {
            ProformaWS.ProformaServiceClient proxy = new ProformaWS.ProformaServiceClient();
            return(View(proxy.Listar().ToList()));
        }