Esempio n. 1
0
        internal async Task CargarProveedorAsync()
        {
            IList <Proveedor> proveedores = await ProveedorService.Buscar(null, true);

            this.Proveedores.AddRange(proveedores.Select(x => new KeyValuePair <Proveedor, string>(x, x.RazonSocial)));
            this.Proveedores.Insert(0, new KeyValuePair <Proveedor, string>(null, Resources.comboSeleccionarOpcion));

            NotifyPropertyChanged(nameof(Proveedores));
        }
Esempio n. 2
0
        public ActionResult <ProveedorVista> Get(string nit)
        {
            var response = Service.Buscar(nit);

            if (response.Error)
            {
                return(BadRequest(response.Mensaje));
            }
            return(Ok(new ProveedorVista(response.Objecto)));
        }
Esempio n. 3
0
 internal async Task BuscarAsync()
 {
     Proveedores = new SortableBindingList <Proveedor>(await ProveedorService.Buscar(RasonSocial, true));
     NotifyPropertyChanged(nameof(Proveedores));
 }