コード例 #1
0
        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()));
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: iEmery/Rproducer_customer
        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);
        }
コード例 #3
0
        public List <address> ListaDirecciones()
        {
            List <address> addresses = new List <address>();

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