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