public void Delete_WithExistingSystemBuild_ShouldDeleteRecord()
        {
            SetUp();
            SeedData();

            var build = _context.SystemBuilds.First();

            _systemBuildService.Delete(build.SystemBuildId);

            Assert.DoesNotContain(build, _context.SystemBuilds);
        }
        public IActionResult DeleteConfirmed(int id)
        {
            var build      = _service.GetSystemBuildById(id);
            var buildImage = build.ImgUrl;

            if (buildImage != Constants.DEFAULT_BUILD_IMG)
            {
                _driveService.DeleteFile(buildImage);
            }

            _service.Delete(id);
            return(RedirectToAction(nameof(Index)));
        }