/// <summary> /// Gets the provinces. /// </summary> /// <returns></returns> public async Task <List <ModelProvince> > GetProvinces() { using (var db = new MancobaLocalDataApi(_connectionFactory, _platformCapabilities)) { var response = await db.GetProvinces(); if (response == null || response.Count == 0) { response = await TestData.GetProvinces(); } return(response.ToModelCollection()); } }