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()); } }
// // GET: /Proforma/ public ActionResult Index() { ProformaWS.ProformaServiceClient proxy = new ProformaWS.ProformaServiceClient(); return(View(proxy.Listar().ToList())); }