public PaymentTypesViewModel() { instance = this; this.apiService = new ApiService(); this.dataService = new DataService(); this.LoadPaymentTypes(); this.IsRefreshing = false; }
private static PaymentTypesViewModel instance; // Atributo public static PaymentTypesViewModel GetInstance() { if (instance == null) { instance = new PaymentTypesViewModel(); } return(instance); }