public async Task LoadContactNeeds()
        {
            ContactNeeds.Clear();
            var response = await ApiHelper.Get <List <ContactNeed> >(ApiRouter.EMPLOYEE_GETNEWCONTACTNEEDS, true);

            if (response.IsSuccess)
            {
                var data = response.Content as List <ContactNeed>;
                for (int i = 0; i < data.Count; i++)
                {
                    ContactNeeds.Add(data[i]);
                }
            }
        }
예제 #2
0
        public async Task LoadContactNeeds()
        {
            ContactNeeds.Clear();
            var response = await ApiHelper.Get <List <ContactNeed> >(ApiRouter.COMPANY_GETNEWCONCTACTNEEDS + "/" + UserLogged.CompanyId, true);

            if (response.IsSuccess)
            {
                var data = new ObservableCollection <ContactNeed>(response.Content as List <ContactNeed>);
                for (int i = 0; i < data.Count; i++)
                {
                    ContactNeeds.Add(data[i]);
                }
            }
        }