Esempio n. 1
0
        public async Task UpsertHsa(Hsa hsa)
        {
            var existing = await _benefitRepository.GetHsaByEmployee(hsa.EmployeeId);

            if (existing == null)
            {
                await _benefitRepository.CreateHsa(hsa);
            }
            else
            {
                await _benefitRepository.UpdateHsa(hsa);
            }
        }