private void RemoveUnmatchedTbServicesFromCaseManager(
     ICollection <CaseManagerTbService> existingTbServices,
     IList <CaseManagerTbService> newTbServices)
 {
     foreach (var caseManagerTbService in existingTbServices)
     {
         if (!newTbServices.Any(c => c.TbServiceCode == caseManagerTbService.TbServiceCode))
         {
             _context.Remove(caseManagerTbService);
         }
     }
 }
 public async Task DeleteAsync(T item)
 {
     _context.Remove(item);
     await UpdateDatabaseAsync();
 }