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()));
        }
Example #2
0
        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);
        }
Example #3
0
        public List <address> ListaDirecciones()
        {
            List <address> addresses = new List <address>();

            try
            {
                addresses = addressFactory.GetAll();
                return(addresses);
            }
            catch (System.Exception ex)
            {
                throw ex;
            }
        }
Example #4
0
 public IActionResult Index()
 {
     return(Ok(_addressFactory.GetAll()));
 }