Beispiel #1
0
        public async void GetOutlet()
        {
            myAPI = RestService.For <IMyAPI>("https://goldenspa.azurewebsites.net");
            var result = await myAPI.GetListChiNhanh();

            mAdapterOutlet = new Home_Outlet_Customer_Adapter(result);
            mRecyclerViewOutlet.SetAdapter(mAdapterOutlet);

            mAdapterOutlet.ItemClick += (s, e) =>
            {
                var intent = new Intent(Activity, typeof(Customer.activity_Outlet_Customer));
                intent.PutExtra("OutletId", result[e].MaCN);
                intent.PutExtra("OutletName", result[e].name);
                StartActivity(intent);
            };
        }