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