public JsonResult GestionarVenta(VentaWS.Venta objVenta) { var objPrx = new VentaWS.GestionDeVentaServiceClient(); VentaWS.Venta oVenta = objPrx.Vender(objVenta.nu_ruc.nu_ruc, objVenta.Items); return(Json(oVenta, JsonRequestBehavior.AllowGet)); }
public JsonResult Listado() { var objPrx = new VentaWS.GestionDeVentaServiceClient(); ICollection <VentaWS.Venta> lst = new List <VentaWS.Venta>(); lst = objPrx.ListarVentas(); return(Json(lst, JsonRequestBehavior.AllowGet)); }