예제 #1
0
        private async void CheckMerchantOwnsEvent()
        {
            try
            {
                var role = UserUtils.GetUserRole();
                if (role.ToLower() == "merchant")
                {
                    bool isOwner = await networkAPI.IsOwnerOfEvent(Event.EventId);

                    if (isOwner)
                    {
                        MerchantVisibility = Visibility.Visible;
                    }
                }
            }
            catch { }
        }