private void SaveDotnetAppDotnetNugetRelationship(DotnetAppDotnetNugets dotnetAppDotnetNuget, IEnumerable <DotnetAppDotnetNugets> storedDotnetAppDotnetNugets)
        {
            var storedDotnetAppDotnetNuget = storedDotnetAppDotnetNugets
                                             .Where(x =>
                                                    x.DotnetAppId.Value == dotnetAppDotnetNuget.DotnetAppId.Value &&
                                                    x.DotnetNugetId.Value == dotnetAppDotnetNuget.DotnetNugetId.Value)
                                             .FirstOrDefault();

            using (var context = new PikapikaContext(_options))
            {
                if (storedDotnetAppDotnetNuget != null)
                {
                    if (storedDotnetAppDotnetNuget.Version == dotnetAppDotnetNuget.Version)
                    {
                        _logger.LogInformation($"DotnetAppDotnetNugetRelationship AppId:{dotnetAppDotnetNuget.DotnetAppId}, NugetId: {dotnetAppDotnetNuget.DotnetNugetId} did not change.");
                        return;
                    }

                    _logger.LogInformation($"DotnetAppDotnetNugetRelationship AppId:{dotnetAppDotnetNuget.DotnetAppId}, NugetId: {dotnetAppDotnetNuget.DotnetNugetId} needs updating.");
                    dotnetAppDotnetNuget.Id = storedDotnetAppDotnetNuget.Id;
                    context.DotnetAppDotnetNugets.Update(dotnetAppDotnetNuget);
                }
                else
                {
                    _logger.LogInformation($"DotnetAppDotnetNugetRelationship AppId:{dotnetAppDotnetNuget.DotnetAppId}, NugetId: {dotnetAppDotnetNuget.DotnetNugetId} is new.");
                    context.DotnetAppDotnetNugets.Add(dotnetAppDotnetNuget);
                }
                context.SaveChanges();
            }
        }
        private void DeleteDotnetAppNugetRelationship(DotnetAppDotnetNugets dotnetAppDotnetNugets)
        {
            using (var context = new PikapikaContext(_options))
            {
                context.Entry(dotnetAppDotnetNugets).State = EntityState.Deleted;

                context.SaveChanges();
            }
        }