public async Task AddService() { if (ServiceModel == null) { await Application.Current.MainPage.DisplayAlert("Greška!", "Niste odabrali uslugu!", "Odaberite ponovo!"); return; } foreach (var x in SelectedServicesList) { if (x.ServiceID == ServiceModel.ServiceID) { await Application.Current.MainPage.DisplayAlert("Greška!", "Usluga se već nalazi na listi odabranih!", "Odaberite novu."); return; } } SelectedServicesList.Add(ServiceModel); }
public int GetSelectedServicesList_Count() { return(SelectedServicesList.Count()); }