public async Task <IActionResult> Addresses() { //Bukimedia.PrestaSharp.Entities.manufacturer Manufacturer = _ManufacturerFactory.Get(6); //Manufacturer.name = "Iron Maiden"; //Manufacturer.active = 1; //_ManufacturerFactory.Add(Manufacturer); return(View(_addressFactory.GetAll())); }
public static Bukimedia.PrestaSharp.Entities.address getAdres(long?id) { AddressFactory addresses = new AddressFactory(BASE_URL, ACCOUNT, PASSWORD); List <Bukimedia.PrestaSharp.Entities.address> all = addresses.GetAll(); foreach (Bukimedia.PrestaSharp.Entities.address a in all) { if (a.id_customer == id) { return(a); } } return(null); }
public List <address> ListaDirecciones() { List <address> addresses = new List <address>(); try { addresses = addressFactory.GetAll(); return(addresses); } catch (System.Exception ex) { throw ex; } }
public IActionResult Index() { return(Ok(_addressFactory.GetAll())); }