/// <summary> /// Gets the provider payments by provider. /// </summary> /// <param name="providerId">The provider identifier.</param> /// <returns></returns> public async Task <List <ModelProviderPayment> > GetProviderPaymentsByProvider(string providerId) { using (var db = new MancobaLocalDataApi(_connectionFactory, _platformCapabilities)) { var response = await db.GetProviderPaymentsByProvider(providerId); return(response.ToModelCollection()); } }