public async Task <IActionResult> ArchiveDrawing(Guid?id, DrawingArchiveType archiveType)
        {
            if (id == null)
            {
                return(NotFound());
            }
            SetUIDs();
            var partInfo = await _repo.GetStaticPartInfo(id);

            if (archiveType == DrawingArchiveType.BlankDrawingArchive)
            {
                BlankDrawingArchive archive = new()
                {
                    DrawingArchiveId    = Guid.NewGuid(),
                    TimeStamp           = DateTime.Now,
                    StaticPartInfoId    = (Guid)id,
                    DrawingArchiveBytes = partInfo.BlankDrawingPdfBytes
                };
                await _repo.AddBlankDrawingArchive(archive);
            }
            else if (archiveType == DrawingArchiveType.FinishDrawingArchive)
            {
                FinishDrawingArchive archive = new()
                {
                    DrawingArchiveId    = Guid.NewGuid(),
                    TimeStamp           = DateTime.Now,
                    StaticPartInfoId    = (Guid)id,
                    DrawingArchiveBytes = partInfo.FinishDrawingPdfBytes
                };
                await _repo.AddFinishDrawingArchive(archive);
            }

            return(RedirectToAction("Index"));
        }