Ejemplo n.º 1
0
        public async Task Create()
        {
            CreateBonusCardApiModel createBonusCardApiModel = new CreateBonusCardApiModel();

            createBonusCardApiModel.FirstName   = _firstName;
            createBonusCardApiModel.LastName    = _lastName;
            createBonusCardApiModel.PhoneNumber = _phoneNumber;

            try
            {
                //ErrorMessage = "";
                FullInfoBonusCardModel fullinfo = await _apiHelper.CreateBonusCard(createBonusCardApiModel);

                await _events.PublishOnUIThreadAsync(new FindCardEvent(fullinfo));
            }
            catch (Exception)
            {
                //  ErrorMessage = ex.Message;
            }
        }