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