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