Reformat.

This commit is contained in:
2019-11-08 20:30:13 +00:00
parent 86ae22c42f
commit 8db64d17ae
189 changed files with 10672 additions and 12092 deletions

View File

@@ -1,43 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class AtasController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public AtasController(DicServerContext context)
{
_context = context;
}
public AtasController(DicServerContext context) => _context = context;
// GET: Admin/Atas
public IActionResult Index()
{
return View(_context.Ata.AsEnumerable().Where(m=>m.IdentifyDevice?.Model != null).OrderBy(m => m.IdentifyDevice.Value.Model));
}
public IActionResult Index() => View(_context.Ata.AsEnumerable().Where(m => m.IdentifyDevice?.Model != null).
OrderBy(m => m.IdentifyDevice.Value.Model));
// GET: Admin/Atas/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var ata = await _context.Ata
.FirstOrDefaultAsync(m => m.Id == id);
if (ata == null)
CommonTypes.Metadata.Ata ata = await _context.Ata.FirstOrDefaultAsync(m => m.Id == id);
if(ata == null)
{
return NotFound();
}
@@ -46,38 +37,36 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/Atas/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/Atas/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,Identify")] DiscImageChef.CommonTypes.Metadata.Ata ata)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,Identify")] CommonTypes.Metadata.Ata ata)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(ata);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(ata);
}
// GET: Admin/Atas/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var ata = await _context.Ata
.FirstOrDefaultAsync(m => m.Id == id);
if (ata == null)
CommonTypes.Metadata.Ata ata = await _context.Ata.FirstOrDefaultAsync(m => m.Id == id);
if(ata == null)
{
return NotFound();
}
@@ -86,19 +75,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/Atas/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var ata = await _context.Ata.FindAsync(id);
CommonTypes.Metadata.Ata ata = await _context.Ata.FindAsync(id);
_context.Ata.Remove(ata);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool AtaExists(int id)
{
return _context.Ata.Any(e => e.Id == id);
}
bool AtaExists(int id) => _context.Ata.Any(e => e.Id == id);
}
}

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class BlockDescriptorsController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public BlockDescriptorsController(DicServerContext context)
{
_context = context;
}
public BlockDescriptorsController(DicServerContext context) => _context = context;
// GET: Admin/BlockDescriptors
public async Task<IActionResult> Index()
{
return View(await _context.BlockDescriptor.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.BlockDescriptor.ToListAsync());
// GET: Admin/BlockDescriptors/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var blockDescriptor = await _context.BlockDescriptor
.FirstOrDefaultAsync(m => m.Id == id);
if (blockDescriptor == null)
BlockDescriptor blockDescriptor = await _context.BlockDescriptor.FirstOrDefaultAsync(m => m.Id == id);
if(blockDescriptor == null)
{
return NotFound();
}
@@ -47,89 +37,90 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/BlockDescriptors/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/BlockDescriptors/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,Density,Blocks,BlockLength")] BlockDescriptor blockDescriptor)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,Density,Blocks,BlockLength")]
BlockDescriptor blockDescriptor)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(blockDescriptor);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(blockDescriptor);
}
// GET: Admin/BlockDescriptors/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var blockDescriptor = await _context.BlockDescriptor.FindAsync(id);
if (blockDescriptor == null)
BlockDescriptor blockDescriptor = await _context.BlockDescriptor.FindAsync(id);
if(blockDescriptor == null)
{
return NotFound();
}
return View(blockDescriptor);
}
// POST: Admin/BlockDescriptors/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,Density,Blocks,BlockLength")] BlockDescriptor blockDescriptor)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,Density,Blocks,BlockLength")]
BlockDescriptor blockDescriptor)
{
if (id != blockDescriptor.Id)
if(id != blockDescriptor.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(blockDescriptor);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!BlockDescriptorExists(blockDescriptor.Id))
if(!BlockDescriptorExists(blockDescriptor.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(blockDescriptor);
}
// GET: Admin/BlockDescriptors/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var blockDescriptor = await _context.BlockDescriptor
.FirstOrDefaultAsync(m => m.Id == id);
if (blockDescriptor == null)
BlockDescriptor blockDescriptor = await _context.BlockDescriptor.FirstOrDefaultAsync(m => m.Id == id);
if(blockDescriptor == null)
{
return NotFound();
}
@@ -138,19 +129,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/BlockDescriptors/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var blockDescriptor = await _context.BlockDescriptor.FindAsync(id);
BlockDescriptor blockDescriptor = await _context.BlockDescriptor.FindAsync(id);
_context.BlockDescriptor.Remove(blockDescriptor);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool BlockDescriptorExists(int id)
{
return _context.BlockDescriptor.Any(e => e.Id == id);
}
bool BlockDescriptorExists(int id) => _context.BlockDescriptor.Any(e => e.Id == id);
}
}

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class ChsController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public ChsController(DicServerContext context)
{
_context = context;
}
public ChsController(DicServerContext context) => _context = context;
// GET: Admin/Chs
public async Task<IActionResult> Index()
{
return View(await _context.Chs.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.Chs.ToListAsync());
// GET: Admin/Chs/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var chs = await _context.Chs
.FirstOrDefaultAsync(m => m.Id == id);
if (chs == null)
Chs chs = await _context.Chs.FirstOrDefaultAsync(m => m.Id == id);
if(chs == null)
{
return NotFound();
}
@@ -47,89 +37,88 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/Chs/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/Chs/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,Cylinders,Heads,Sectors")] Chs chs)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(chs);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(chs);
}
// GET: Admin/Chs/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var chs = await _context.Chs.FindAsync(id);
if (chs == null)
Chs chs = await _context.Chs.FindAsync(id);
if(chs == null)
{
return NotFound();
}
return View(chs);
}
// POST: Admin/Chs/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,Cylinders,Heads,Sectors")] Chs chs)
{
if (id != chs.Id)
if(id != chs.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(chs);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!ChsExists(chs.Id))
if(!ChsExists(chs.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(chs);
}
// GET: Admin/Chs/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var chs = await _context.Chs
.FirstOrDefaultAsync(m => m.Id == id);
if (chs == null)
Chs chs = await _context.Chs.FirstOrDefaultAsync(m => m.Id == id);
if(chs == null)
{
return NotFound();
}
@@ -138,19 +127,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/Chs/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var chs = await _context.Chs.FindAsync(id);
Chs chs = await _context.Chs.FindAsync(id);
_context.Chs.Remove(chs);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool ChsExists(int id)
{
return _context.Chs.Any(e => e.Id == id);
}
bool ChsExists(int id) => _context.Chs.Any(e => e.Id == id);
}
}

View File

@@ -7,8 +7,7 @@ using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class CommandsController : Controller
{
readonly DicServerContext _context;

View File

@@ -7,8 +7,7 @@ using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class CompactDiscOffsetsController : Controller
{
readonly DicServerContext _context;

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class DensityCodesController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public DensityCodesController(DicServerContext context)
{
_context = context;
}
public DensityCodesController(DicServerContext context) => _context = context;
// GET: Admin/DensityCodes
public async Task<IActionResult> Index()
{
return View(await _context.DensityCode.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.DensityCode.ToListAsync());
// GET: Admin/DensityCodes/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var densityCode = await _context.DensityCode
.FirstOrDefaultAsync(m => m.Id == id);
if (densityCode == null)
DensityCode densityCode = await _context.DensityCode.FirstOrDefaultAsync(m => m.Id == id);
if(densityCode == null)
{
return NotFound();
}
@@ -47,89 +37,88 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/DensityCodes/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/DensityCodes/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,Code")] DensityCode densityCode)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(densityCode);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(densityCode);
}
// GET: Admin/DensityCodes/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var densityCode = await _context.DensityCode.FindAsync(id);
if (densityCode == null)
DensityCode densityCode = await _context.DensityCode.FindAsync(id);
if(densityCode == null)
{
return NotFound();
}
return View(densityCode);
}
// POST: Admin/DensityCodes/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,Code")] DensityCode densityCode)
{
if (id != densityCode.Id)
if(id != densityCode.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(densityCode);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!DensityCodeExists(densityCode.Id))
if(!DensityCodeExists(densityCode.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(densityCode);
}
// GET: Admin/DensityCodes/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var densityCode = await _context.DensityCode
.FirstOrDefaultAsync(m => m.Id == id);
if (densityCode == null)
DensityCode densityCode = await _context.DensityCode.FirstOrDefaultAsync(m => m.Id == id);
if(densityCode == null)
{
return NotFound();
}
@@ -138,19 +127,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/DensityCodes/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var densityCode = await _context.DensityCode.FindAsync(id);
DensityCode densityCode = await _context.DensityCode.FindAsync(id);
_context.DensityCode.Remove(densityCode);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool DensityCodeExists(int id)
{
return _context.DensityCode.Any(e => e.Id == id);
}
bool DensityCodeExists(int id) => _context.DensityCode.Any(e => e.Id == id);
}
}

View File

@@ -7,8 +7,7 @@ using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class DeviceStatsController : Controller
{
readonly DicServerContext _context;

View File

@@ -7,8 +7,7 @@ using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class DevicesController : Controller
{
readonly DicServerContext _context;

View File

@@ -7,8 +7,7 @@ using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class FilesystemsController : Controller
{
readonly DicServerContext _context;

View File

@@ -7,8 +7,7 @@ using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class FiltersController : Controller
{
readonly DicServerContext _context;

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class FireWiresController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public FireWiresController(DicServerContext context)
{
_context = context;
}
public FireWiresController(DicServerContext context) => _context = context;
// GET: Admin/FireWires
public async Task<IActionResult> Index()
{
return View(await _context.FireWire.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.FireWire.ToListAsync());
// GET: Admin/FireWires/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var fireWire = await _context.FireWire
.FirstOrDefaultAsync(m => m.Id == id);
if (fireWire == null)
FireWire fireWire = await _context.FireWire.FirstOrDefaultAsync(m => m.Id == id);
if(fireWire == null)
{
return NotFound();
}
@@ -47,89 +37,91 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/FireWires/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/FireWires/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,VendorID,ProductID,Manufacturer,Product,RemovableMedia")] FireWire fireWire)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,VendorID,ProductID,Manufacturer,Product,RemovableMedia")]
FireWire fireWire)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(fireWire);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(fireWire);
}
// GET: Admin/FireWires/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var fireWire = await _context.FireWire.FindAsync(id);
if (fireWire == null)
FireWire fireWire = await _context.FireWire.FindAsync(id);
if(fireWire == null)
{
return NotFound();
}
return View(fireWire);
}
// POST: Admin/FireWires/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,VendorID,ProductID,Manufacturer,Product,RemovableMedia")] FireWire fireWire)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(
int id, [Bind("Id,VendorID,ProductID,Manufacturer,Product,RemovableMedia")]
FireWire fireWire)
{
if (id != fireWire.Id)
if(id != fireWire.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(fireWire);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!FireWireExists(fireWire.Id))
if(!FireWireExists(fireWire.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(fireWire);
}
// GET: Admin/FireWires/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var fireWire = await _context.FireWire
.FirstOrDefaultAsync(m => m.Id == id);
if (fireWire == null)
FireWire fireWire = await _context.FireWire.FirstOrDefaultAsync(m => m.Id == id);
if(fireWire == null)
{
return NotFound();
}
@@ -138,19 +130,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/FireWires/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var fireWire = await _context.FireWire.FindAsync(id);
FireWire fireWire = await _context.FireWire.FindAsync(id);
_context.FireWire.Remove(fireWire);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool FireWireExists(int id)
{
return _context.FireWire.Any(e => e.Id == id);
}
bool FireWireExists(int id) => _context.FireWire.Any(e => e.Id == id);
}
}

View File

@@ -11,7 +11,7 @@
//
// Provides documentation data for razor views.
//
// --[ License ] --------------------------------------------------------------
// --[ License ] --------------------------------------------------------------
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as

View File

@@ -7,8 +7,7 @@ using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class MediaFormatsController : Controller
{
readonly DicServerContext _context;

View File

@@ -7,8 +7,7 @@ using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class MediasController : Controller
{
readonly DicServerContext _context;

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class MmcController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public MmcController(DicServerContext context)
{
_context = context;
}
public MmcController(DicServerContext context) => _context = context;
// GET: Admin/Mmc
public async Task<IActionResult> Index()
{
return View(await _context.Mmc.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.Mmc.ToListAsync());
// GET: Admin/Mmc/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var mmc = await _context.Mmc
.FirstOrDefaultAsync(m => m.Id == id);
if (mmc == null)
Mmc mmc = await _context.Mmc.FirstOrDefaultAsync(m => m.Id == id);
if(mmc == null)
{
return NotFound();
}
@@ -47,89 +37,88 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/Mmc/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/Mmc/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,ModeSense2AData")] Mmc mmc)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(mmc);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(mmc);
}
// GET: Admin/Mmc/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var mmc = await _context.Mmc.FindAsync(id);
if (mmc == null)
Mmc mmc = await _context.Mmc.FindAsync(id);
if(mmc == null)
{
return NotFound();
}
return View(mmc);
}
// POST: Admin/Mmc/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,ModeSense2AData")] Mmc mmc)
{
if (id != mmc.Id)
if(id != mmc.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(mmc);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!MmcExists(mmc.Id))
if(!MmcExists(mmc.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(mmc);
}
// GET: Admin/Mmc/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var mmc = await _context.Mmc
.FirstOrDefaultAsync(m => m.Id == id);
if (mmc == null)
Mmc mmc = await _context.Mmc.FirstOrDefaultAsync(m => m.Id == id);
if(mmc == null)
{
return NotFound();
}
@@ -138,19 +127,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/Mmc/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var mmc = await _context.Mmc.FindAsync(id);
Mmc mmc = await _context.Mmc.FindAsync(id);
_context.Mmc.Remove(mmc);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool MmcExists(int id)
{
return _context.Mmc.Any(e => e.Id == id);
}
bool MmcExists(int id) => _context.Mmc.Any(e => e.Id == id);
}
}

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class MmcFeaturesController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public MmcFeaturesController(DicServerContext context)
{
_context = context;
}
public MmcFeaturesController(DicServerContext context) => _context = context;
// GET: Admin/MmcFeatures
public async Task<IActionResult> Index()
{
return View(await _context.MmcFeatures.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.MmcFeatures.ToListAsync());
// GET: Admin/MmcFeatures/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var mmcFeatures = await _context.MmcFeatures
.FirstOrDefaultAsync(m => m.Id == id);
if (mmcFeatures == null)
MmcFeatures mmcFeatures = await _context.MmcFeatures.FirstOrDefaultAsync(m => m.Id == id);
if(mmcFeatures == null)
{
return NotFound();
}
@@ -47,89 +37,93 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/MmcFeatures/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/MmcFeatures/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,AACSVersion,AGIDs,BindingNonceBlocks,BlocksPerReadableUnit,BufferUnderrunFreeInDVD,BufferUnderrunFreeInSAO,BufferUnderrunFreeInTAO,CanAudioScan,CanEject,CanEraseSector,CanExpandBDRESpareArea,CanFormat,CanFormatBDREWithoutSpare,CanFormatCert,CanFormatFRF,CanFormatQCert,CanFormatRRM,CanGenerateBindingNonce,CanLoad,CanMuteSeparateChannels,CanOverwriteSAOTrack,CanOverwriteTAOTrack,CanPlayCDAudio,CanPseudoOverwriteBDR,CanReadAllDualR,CanReadAllDualRW,CanReadBD,CanReadBDR,CanReadBDRE1,CanReadBDRE2,CanReadBDROM,CanReadBluBCA,CanReadCD,CanReadCDMRW,CanReadCPRM_MKB,CanReadDDCD,CanReadDVD,CanReadDVDPlusMRW,CanReadDVDPlusR,CanReadDVDPlusRDL,CanReadDVDPlusRW,CanReadDVDPlusRWDL,CanReadDriveAACSCertificate,CanReadHDDVD,CanReadHDDVDR,CanReadHDDVDRAM,CanReadLeadInCDText,CanReadOldBDR,CanReadOldBDRE,CanReadOldBDROM,CanReadSpareAreaInformation,CanReportDriveSerial,CanReportMediaSerial,CanTestWriteDDCDR,CanTestWriteDVD,CanTestWriteInSAO,CanTestWriteInTAO,CanUpgradeFirmware,CanWriteBD,CanWriteBDR,CanWriteBDRE1,CanWriteBDRE2,CanWriteBusEncryptedBlocks,CanWriteCDMRW,CanWriteCDRW,CanWriteCDRWCAV,CanWriteCDSAO,CanWriteCDTAO,CanWriteCSSManagedDVD,CanWriteDDCDR,CanWriteDDCDRW,CanWriteDVDPlusMRW,CanWriteDVDPlusR,CanWriteDVDPlusRDL,CanWriteDVDPlusRW,CanWriteDVDPlusRWDL,CanWriteDVDR,CanWriteDVDRDL,CanWriteDVDRW,CanWriteHDDVDR,CanWriteHDDVDRAM,CanWriteOldBDR,CanWriteOldBDRE,CanWritePackedSubchannelInTAO,CanWriteRWSubchannelInSAO,CanWriteRWSubchannelInTAO,CanWriteRaw,CanWriteRawMultiSession,CanWriteRawSubchannelInTAO,ChangerIsSideChangeCapable,ChangerSlots,ChangerSupportsDiscPresent,CPRMVersion,CSSVersion,DBML,DVDMultiRead,EmbeddedChanger,ErrorRecoveryPage,FirmwareDate,LoadingMechanismType,Locked,LogicalBlockSize,MultiRead,PhysicalInterfaceStandardNumber,PreventJumper,SupportsAACS,SupportsBusEncryption,SupportsC2,SupportsCPRM,SupportsCSS,SupportsDAP,SupportsDeviceBusyEvent,SupportsHybridDiscs,SupportsModePage1Ch,SupportsOSSC,SupportsPWP,SupportsSWPP,SupportsSecurDisc,SupportsSeparateVolume,SupportsVCPS,SupportsWriteInhibitDCB,SupportsWriteProtectPAC,VolumeLevels,BinaryData")] MmcFeatures mmcFeatures)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create(
[Bind(
"Id,AACSVersion,AGIDs,BindingNonceBlocks,BlocksPerReadableUnit,BufferUnderrunFreeInDVD,BufferUnderrunFreeInSAO,BufferUnderrunFreeInTAO,CanAudioScan,CanEject,CanEraseSector,CanExpandBDRESpareArea,CanFormat,CanFormatBDREWithoutSpare,CanFormatCert,CanFormatFRF,CanFormatQCert,CanFormatRRM,CanGenerateBindingNonce,CanLoad,CanMuteSeparateChannels,CanOverwriteSAOTrack,CanOverwriteTAOTrack,CanPlayCDAudio,CanPseudoOverwriteBDR,CanReadAllDualR,CanReadAllDualRW,CanReadBD,CanReadBDR,CanReadBDRE1,CanReadBDRE2,CanReadBDROM,CanReadBluBCA,CanReadCD,CanReadCDMRW,CanReadCPRM_MKB,CanReadDDCD,CanReadDVD,CanReadDVDPlusMRW,CanReadDVDPlusR,CanReadDVDPlusRDL,CanReadDVDPlusRW,CanReadDVDPlusRWDL,CanReadDriveAACSCertificate,CanReadHDDVD,CanReadHDDVDR,CanReadHDDVDRAM,CanReadLeadInCDText,CanReadOldBDR,CanReadOldBDRE,CanReadOldBDROM,CanReadSpareAreaInformation,CanReportDriveSerial,CanReportMediaSerial,CanTestWriteDDCDR,CanTestWriteDVD,CanTestWriteInSAO,CanTestWriteInTAO,CanUpgradeFirmware,CanWriteBD,CanWriteBDR,CanWriteBDRE1,CanWriteBDRE2,CanWriteBusEncryptedBlocks,CanWriteCDMRW,CanWriteCDRW,CanWriteCDRWCAV,CanWriteCDSAO,CanWriteCDTAO,CanWriteCSSManagedDVD,CanWriteDDCDR,CanWriteDDCDRW,CanWriteDVDPlusMRW,CanWriteDVDPlusR,CanWriteDVDPlusRDL,CanWriteDVDPlusRW,CanWriteDVDPlusRWDL,CanWriteDVDR,CanWriteDVDRDL,CanWriteDVDRW,CanWriteHDDVDR,CanWriteHDDVDRAM,CanWriteOldBDR,CanWriteOldBDRE,CanWritePackedSubchannelInTAO,CanWriteRWSubchannelInSAO,CanWriteRWSubchannelInTAO,CanWriteRaw,CanWriteRawMultiSession,CanWriteRawSubchannelInTAO,ChangerIsSideChangeCapable,ChangerSlots,ChangerSupportsDiscPresent,CPRMVersion,CSSVersion,DBML,DVDMultiRead,EmbeddedChanger,ErrorRecoveryPage,FirmwareDate,LoadingMechanismType,Locked,LogicalBlockSize,MultiRead,PhysicalInterfaceStandardNumber,PreventJumper,SupportsAACS,SupportsBusEncryption,SupportsC2,SupportsCPRM,SupportsCSS,SupportsDAP,SupportsDeviceBusyEvent,SupportsHybridDiscs,SupportsModePage1Ch,SupportsOSSC,SupportsPWP,SupportsSWPP,SupportsSecurDisc,SupportsSeparateVolume,SupportsVCPS,SupportsWriteInhibitDCB,SupportsWriteProtectPAC,VolumeLevels,BinaryData")]
MmcFeatures mmcFeatures)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(mmcFeatures);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(mmcFeatures);
}
// GET: Admin/MmcFeatures/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var mmcFeatures = await _context.MmcFeatures.FindAsync(id);
if (mmcFeatures == null)
MmcFeatures mmcFeatures = await _context.MmcFeatures.FindAsync(id);
if(mmcFeatures == null)
{
return NotFound();
}
return View(mmcFeatures);
}
// POST: Admin/MmcFeatures/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,AACSVersion,AGIDs,BindingNonceBlocks,BlocksPerReadableUnit,BufferUnderrunFreeInDVD,BufferUnderrunFreeInSAO,BufferUnderrunFreeInTAO,CanAudioScan,CanEject,CanEraseSector,CanExpandBDRESpareArea,CanFormat,CanFormatBDREWithoutSpare,CanFormatCert,CanFormatFRF,CanFormatQCert,CanFormatRRM,CanGenerateBindingNonce,CanLoad,CanMuteSeparateChannels,CanOverwriteSAOTrack,CanOverwriteTAOTrack,CanPlayCDAudio,CanPseudoOverwriteBDR,CanReadAllDualR,CanReadAllDualRW,CanReadBD,CanReadBDR,CanReadBDRE1,CanReadBDRE2,CanReadBDROM,CanReadBluBCA,CanReadCD,CanReadCDMRW,CanReadCPRM_MKB,CanReadDDCD,CanReadDVD,CanReadDVDPlusMRW,CanReadDVDPlusR,CanReadDVDPlusRDL,CanReadDVDPlusRW,CanReadDVDPlusRWDL,CanReadDriveAACSCertificate,CanReadHDDVD,CanReadHDDVDR,CanReadHDDVDRAM,CanReadLeadInCDText,CanReadOldBDR,CanReadOldBDRE,CanReadOldBDROM,CanReadSpareAreaInformation,CanReportDriveSerial,CanReportMediaSerial,CanTestWriteDDCDR,CanTestWriteDVD,CanTestWriteInSAO,CanTestWriteInTAO,CanUpgradeFirmware,CanWriteBD,CanWriteBDR,CanWriteBDRE1,CanWriteBDRE2,CanWriteBusEncryptedBlocks,CanWriteCDMRW,CanWriteCDRW,CanWriteCDRWCAV,CanWriteCDSAO,CanWriteCDTAO,CanWriteCSSManagedDVD,CanWriteDDCDR,CanWriteDDCDRW,CanWriteDVDPlusMRW,CanWriteDVDPlusR,CanWriteDVDPlusRDL,CanWriteDVDPlusRW,CanWriteDVDPlusRWDL,CanWriteDVDR,CanWriteDVDRDL,CanWriteDVDRW,CanWriteHDDVDR,CanWriteHDDVDRAM,CanWriteOldBDR,CanWriteOldBDRE,CanWritePackedSubchannelInTAO,CanWriteRWSubchannelInSAO,CanWriteRWSubchannelInTAO,CanWriteRaw,CanWriteRawMultiSession,CanWriteRawSubchannelInTAO,ChangerIsSideChangeCapable,ChangerSlots,ChangerSupportsDiscPresent,CPRMVersion,CSSVersion,DBML,DVDMultiRead,EmbeddedChanger,ErrorRecoveryPage,FirmwareDate,LoadingMechanismType,Locked,LogicalBlockSize,MultiRead,PhysicalInterfaceStandardNumber,PreventJumper,SupportsAACS,SupportsBusEncryption,SupportsC2,SupportsCPRM,SupportsCSS,SupportsDAP,SupportsDeviceBusyEvent,SupportsHybridDiscs,SupportsModePage1Ch,SupportsOSSC,SupportsPWP,SupportsSWPP,SupportsSecurDisc,SupportsSeparateVolume,SupportsVCPS,SupportsWriteInhibitDCB,SupportsWriteProtectPAC,VolumeLevels,BinaryData")] MmcFeatures mmcFeatures)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind(
"Id,AACSVersion,AGIDs,BindingNonceBlocks,BlocksPerReadableUnit,BufferUnderrunFreeInDVD,BufferUnderrunFreeInSAO,BufferUnderrunFreeInTAO,CanAudioScan,CanEject,CanEraseSector,CanExpandBDRESpareArea,CanFormat,CanFormatBDREWithoutSpare,CanFormatCert,CanFormatFRF,CanFormatQCert,CanFormatRRM,CanGenerateBindingNonce,CanLoad,CanMuteSeparateChannels,CanOverwriteSAOTrack,CanOverwriteTAOTrack,CanPlayCDAudio,CanPseudoOverwriteBDR,CanReadAllDualR,CanReadAllDualRW,CanReadBD,CanReadBDR,CanReadBDRE1,CanReadBDRE2,CanReadBDROM,CanReadBluBCA,CanReadCD,CanReadCDMRW,CanReadCPRM_MKB,CanReadDDCD,CanReadDVD,CanReadDVDPlusMRW,CanReadDVDPlusR,CanReadDVDPlusRDL,CanReadDVDPlusRW,CanReadDVDPlusRWDL,CanReadDriveAACSCertificate,CanReadHDDVD,CanReadHDDVDR,CanReadHDDVDRAM,CanReadLeadInCDText,CanReadOldBDR,CanReadOldBDRE,CanReadOldBDROM,CanReadSpareAreaInformation,CanReportDriveSerial,CanReportMediaSerial,CanTestWriteDDCDR,CanTestWriteDVD,CanTestWriteInSAO,CanTestWriteInTAO,CanUpgradeFirmware,CanWriteBD,CanWriteBDR,CanWriteBDRE1,CanWriteBDRE2,CanWriteBusEncryptedBlocks,CanWriteCDMRW,CanWriteCDRW,CanWriteCDRWCAV,CanWriteCDSAO,CanWriteCDTAO,CanWriteCSSManagedDVD,CanWriteDDCDR,CanWriteDDCDRW,CanWriteDVDPlusMRW,CanWriteDVDPlusR,CanWriteDVDPlusRDL,CanWriteDVDPlusRW,CanWriteDVDPlusRWDL,CanWriteDVDR,CanWriteDVDRDL,CanWriteDVDRW,CanWriteHDDVDR,CanWriteHDDVDRAM,CanWriteOldBDR,CanWriteOldBDRE,CanWritePackedSubchannelInTAO,CanWriteRWSubchannelInSAO,CanWriteRWSubchannelInTAO,CanWriteRaw,CanWriteRawMultiSession,CanWriteRawSubchannelInTAO,ChangerIsSideChangeCapable,ChangerSlots,ChangerSupportsDiscPresent,CPRMVersion,CSSVersion,DBML,DVDMultiRead,EmbeddedChanger,ErrorRecoveryPage,FirmwareDate,LoadingMechanismType,Locked,LogicalBlockSize,MultiRead,PhysicalInterfaceStandardNumber,PreventJumper,SupportsAACS,SupportsBusEncryption,SupportsC2,SupportsCPRM,SupportsCSS,SupportsDAP,SupportsDeviceBusyEvent,SupportsHybridDiscs,SupportsModePage1Ch,SupportsOSSC,SupportsPWP,SupportsSWPP,SupportsSecurDisc,SupportsSeparateVolume,SupportsVCPS,SupportsWriteInhibitDCB,SupportsWriteProtectPAC,VolumeLevels,BinaryData")]
MmcFeatures mmcFeatures)
{
if (id != mmcFeatures.Id)
if(id != mmcFeatures.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(mmcFeatures);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!MmcFeaturesExists(mmcFeatures.Id))
if(!MmcFeaturesExists(mmcFeatures.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(mmcFeatures);
}
// GET: Admin/MmcFeatures/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var mmcFeatures = await _context.MmcFeatures
.FirstOrDefaultAsync(m => m.Id == id);
if (mmcFeatures == null)
MmcFeatures mmcFeatures = await _context.MmcFeatures.FirstOrDefaultAsync(m => m.Id == id);
if(mmcFeatures == null)
{
return NotFound();
}
@@ -138,19 +132,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/MmcFeatures/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var mmcFeatures = await _context.MmcFeatures.FindAsync(id);
MmcFeatures mmcFeatures = await _context.MmcFeatures.FindAsync(id);
_context.MmcFeatures.Remove(mmcFeatures);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool MmcFeaturesExists(int id)
{
return _context.MmcFeatures.Any(e => e.Id == id);
}
bool MmcFeaturesExists(int id) => _context.MmcFeatures.Any(e => e.Id == id);
}
}

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class MmcSdsController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public MmcSdsController(DicServerContext context)
{
_context = context;
}
public MmcSdsController(DicServerContext context) => _context = context;
// GET: Admin/MmcSds
public async Task<IActionResult> Index()
{
return View(await _context.MmcSd.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.MmcSd.ToListAsync());
// GET: Admin/MmcSds/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var mmcSd = await _context.MmcSd
.FirstOrDefaultAsync(m => m.Id == id);
if (mmcSd == null)
MmcSd mmcSd = await _context.MmcSd.FirstOrDefaultAsync(m => m.Id == id);
if(mmcSd == null)
{
return NotFound();
}
@@ -47,89 +37,90 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/MmcSds/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/MmcSds/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,CID,CSD,OCR,SCR,ExtendedCSD")] MmcSd mmcSd)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,CID,CSD,OCR,SCR,ExtendedCSD")]
MmcSd mmcSd)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(mmcSd);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(mmcSd);
}
// GET: Admin/MmcSds/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var mmcSd = await _context.MmcSd.FindAsync(id);
if (mmcSd == null)
MmcSd mmcSd = await _context.MmcSd.FindAsync(id);
if(mmcSd == null)
{
return NotFound();
}
return View(mmcSd);
}
// POST: Admin/MmcSds/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,CID,CSD,OCR,SCR,ExtendedCSD")] MmcSd mmcSd)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,CID,CSD,OCR,SCR,ExtendedCSD")]
MmcSd mmcSd)
{
if (id != mmcSd.Id)
if(id != mmcSd.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(mmcSd);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!MmcSdExists(mmcSd.Id))
if(!MmcSdExists(mmcSd.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(mmcSd);
}
// GET: Admin/MmcSds/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var mmcSd = await _context.MmcSd
.FirstOrDefaultAsync(m => m.Id == id);
if (mmcSd == null)
MmcSd mmcSd = await _context.MmcSd.FirstOrDefaultAsync(m => m.Id == id);
if(mmcSd == null)
{
return NotFound();
}
@@ -138,19 +129,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/MmcSds/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var mmcSd = await _context.MmcSd.FindAsync(id);
MmcSd mmcSd = await _context.MmcSd.FindAsync(id);
_context.MmcSd.Remove(mmcSd);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool MmcSdExists(int id)
{
return _context.MmcSd.Any(e => e.Id == id);
}
bool MmcSdExists(int id) => _context.MmcSd.Any(e => e.Id == id);
}
}

View File

@@ -7,8 +7,7 @@ using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class OperatingSystemsController : Controller
{
readonly DicServerContext _context;

View File

@@ -7,8 +7,7 @@ using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class PartitionsController : Controller
{
readonly DicServerContext _context;

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class PcmciasController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public PcmciasController(DicServerContext context)
{
_context = context;
}
public PcmciasController(DicServerContext context) => _context = context;
// GET: Admin/Pcmcias
public async Task<IActionResult> Index()
{
return View(await _context.Pcmcia.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.Pcmcia.ToListAsync());
// GET: Admin/Pcmcias/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var pcmcia = await _context.Pcmcia
.FirstOrDefaultAsync(m => m.Id == id);
if (pcmcia == null)
Pcmcia pcmcia = await _context.Pcmcia.FirstOrDefaultAsync(m => m.Id == id);
if(pcmcia == null)
{
return NotFound();
}
@@ -47,89 +37,92 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/Pcmcias/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/Pcmcias/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,CIS,Compliance,ManufacturerCode,CardCode,Manufacturer,ProductName")] Pcmcia pcmcia)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create(
[Bind("Id,CIS,Compliance,ManufacturerCode,CardCode,Manufacturer,ProductName")]
Pcmcia pcmcia)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(pcmcia);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(pcmcia);
}
// GET: Admin/Pcmcias/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var pcmcia = await _context.Pcmcia.FindAsync(id);
if (pcmcia == null)
Pcmcia pcmcia = await _context.Pcmcia.FindAsync(id);
if(pcmcia == null)
{
return NotFound();
}
return View(pcmcia);
}
// POST: Admin/Pcmcias/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,CIS,Compliance,ManufacturerCode,CardCode,Manufacturer,ProductName")] Pcmcia pcmcia)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(
int id, [Bind("Id,CIS,Compliance,ManufacturerCode,CardCode,Manufacturer,ProductName")]
Pcmcia pcmcia)
{
if (id != pcmcia.Id)
if(id != pcmcia.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(pcmcia);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!PcmciaExists(pcmcia.Id))
if(!PcmciaExists(pcmcia.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(pcmcia);
}
// GET: Admin/Pcmcias/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var pcmcia = await _context.Pcmcia
.FirstOrDefaultAsync(m => m.Id == id);
if (pcmcia == null)
Pcmcia pcmcia = await _context.Pcmcia.FirstOrDefaultAsync(m => m.Id == id);
if(pcmcia == null)
{
return NotFound();
}
@@ -138,19 +131,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/Pcmcias/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var pcmcia = await _context.Pcmcia.FindAsync(id);
Pcmcia pcmcia = await _context.Pcmcia.FindAsync(id);
_context.Pcmcia.Remove(pcmcia);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool PcmciaExists(int id)
{
return _context.Pcmcia.Any(e => e.Id == id);
}
bool PcmciaExists(int id) => _context.Pcmcia.Any(e => e.Id == id);
}
}

View File

@@ -7,8 +7,7 @@ using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class ReportsController : Controller
{
readonly DicServerContext _context;

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class ScsiModesController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public ScsiModesController(DicServerContext context)
{
_context = context;
}
public ScsiModesController(DicServerContext context) => _context = context;
// GET: Admin/ScsiModes
public async Task<IActionResult> Index()
{
return View(await _context.ScsiMode.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.ScsiMode.ToListAsync());
// GET: Admin/ScsiModes/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var scsiMode = await _context.ScsiMode
.FirstOrDefaultAsync(m => m.Id == id);
if (scsiMode == null)
ScsiMode scsiMode = await _context.ScsiMode.FirstOrDefaultAsync(m => m.Id == id);
if(scsiMode == null)
{
return NotFound();
}
@@ -47,89 +37,92 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/ScsiModes/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/ScsiModes/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,MediumType,WriteProtected,Speed,BufferedMode,BlankCheckEnabled,DPOandFUA")] ScsiMode scsiMode)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create(
[Bind("Id,MediumType,WriteProtected,Speed,BufferedMode,BlankCheckEnabled,DPOandFUA")]
ScsiMode scsiMode)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(scsiMode);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(scsiMode);
}
// GET: Admin/ScsiModes/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var scsiMode = await _context.ScsiMode.FindAsync(id);
if (scsiMode == null)
ScsiMode scsiMode = await _context.ScsiMode.FindAsync(id);
if(scsiMode == null)
{
return NotFound();
}
return View(scsiMode);
}
// POST: Admin/ScsiModes/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,MediumType,WriteProtected,Speed,BufferedMode,BlankCheckEnabled,DPOandFUA")] ScsiMode scsiMode)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(
int id, [Bind("Id,MediumType,WriteProtected,Speed,BufferedMode,BlankCheckEnabled,DPOandFUA")]
ScsiMode scsiMode)
{
if (id != scsiMode.Id)
if(id != scsiMode.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(scsiMode);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!ScsiModeExists(scsiMode.Id))
if(!ScsiModeExists(scsiMode.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(scsiMode);
}
// GET: Admin/ScsiModes/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var scsiMode = await _context.ScsiMode
.FirstOrDefaultAsync(m => m.Id == id);
if (scsiMode == null)
ScsiMode scsiMode = await _context.ScsiMode.FirstOrDefaultAsync(m => m.Id == id);
if(scsiMode == null)
{
return NotFound();
}
@@ -138,19 +131,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/ScsiModes/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var scsiMode = await _context.ScsiMode.FindAsync(id);
ScsiMode scsiMode = await _context.ScsiMode.FindAsync(id);
_context.ScsiMode.Remove(scsiMode);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool ScsiModeExists(int id)
{
return _context.ScsiMode.Any(e => e.Id == id);
}
bool ScsiModeExists(int id) => _context.ScsiMode.Any(e => e.Id == id);
}
}

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class ScsiPagesController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public ScsiPagesController(DicServerContext context)
{
_context = context;
}
public ScsiPagesController(DicServerContext context) => _context = context;
// GET: Admin/ScsiPages
public async Task<IActionResult> Index()
{
return View(await _context.ScsiPage.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.ScsiPage.ToListAsync());
// GET: Admin/ScsiPages/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var scsiPage = await _context.ScsiPage
.FirstOrDefaultAsync(m => m.Id == id);
if (scsiPage == null)
ScsiPage scsiPage = await _context.ScsiPage.FirstOrDefaultAsync(m => m.Id == id);
if(scsiPage == null)
{
return NotFound();
}
@@ -47,89 +37,88 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/ScsiPages/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/ScsiPages/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,page,subpage,value")] ScsiPage scsiPage)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(scsiPage);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(scsiPage);
}
// GET: Admin/ScsiPages/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var scsiPage = await _context.ScsiPage.FindAsync(id);
if (scsiPage == null)
ScsiPage scsiPage = await _context.ScsiPage.FindAsync(id);
if(scsiPage == null)
{
return NotFound();
}
return View(scsiPage);
}
// POST: Admin/ScsiPages/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,page,subpage,value")] ScsiPage scsiPage)
{
if (id != scsiPage.Id)
if(id != scsiPage.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(scsiPage);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!ScsiPageExists(scsiPage.Id))
if(!ScsiPageExists(scsiPage.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(scsiPage);
}
// GET: Admin/ScsiPages/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var scsiPage = await _context.ScsiPage
.FirstOrDefaultAsync(m => m.Id == id);
if (scsiPage == null)
ScsiPage scsiPage = await _context.ScsiPage.FirstOrDefaultAsync(m => m.Id == id);
if(scsiPage == null)
{
return NotFound();
}
@@ -138,19 +127,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/ScsiPages/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var scsiPage = await _context.ScsiPage.FindAsync(id);
ScsiPage scsiPage = await _context.ScsiPage.FindAsync(id);
_context.ScsiPage.Remove(scsiPage);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool ScsiPageExists(int id)
{
return _context.ScsiPage.Any(e => e.Id == id);
}
bool ScsiPageExists(int id) => _context.ScsiPage.Any(e => e.Id == id);
}
}

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class ScsisController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public ScsisController(DicServerContext context)
{
_context = context;
}
public ScsisController(DicServerContext context) => _context = context;
// GET: Admin/Scsis
public async Task<IActionResult> Index()
{
return View(await _context.Scsi.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.Scsi.ToListAsync());
// GET: Admin/Scsis/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var scsi = await _context.Scsi
.FirstOrDefaultAsync(m => m.Id == id);
if (scsi == null)
Scsi scsi = await _context.Scsi.FirstOrDefaultAsync(m => m.Id == id);
if(scsi == null)
{
return NotFound();
}
@@ -47,89 +37,94 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/Scsis/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/Scsis/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,InquiryData,SupportsModeSense6,SupportsModeSense10,SupportsModeSubpages,ModeSense6Data,ModeSense10Data,ModeSense6CurrentData,ModeSense10CurrentData,ModeSense6ChangeableData,ModeSense10ChangeableData")] Scsi scsi)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create(
[Bind(
"Id,InquiryData,SupportsModeSense6,SupportsModeSense10,SupportsModeSubpages,ModeSense6Data,ModeSense10Data,ModeSense6CurrentData,ModeSense10CurrentData,ModeSense6ChangeableData,ModeSense10ChangeableData")]
Scsi scsi)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(scsi);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(scsi);
}
// GET: Admin/Scsis/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var scsi = await _context.Scsi.FindAsync(id);
if (scsi == null)
Scsi scsi = await _context.Scsi.FindAsync(id);
if(scsi == null)
{
return NotFound();
}
return View(scsi);
}
// POST: Admin/Scsis/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,InquiryData,SupportsModeSense6,SupportsModeSense10,SupportsModeSubpages,ModeSense6Data,ModeSense10Data,ModeSense6CurrentData,ModeSense10CurrentData,ModeSense6ChangeableData,ModeSense10ChangeableData")] Scsi scsi)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(
int id, [Bind(
"Id,InquiryData,SupportsModeSense6,SupportsModeSense10,SupportsModeSubpages,ModeSense6Data,ModeSense10Data,ModeSense6CurrentData,ModeSense10CurrentData,ModeSense6ChangeableData,ModeSense10ChangeableData")]
Scsi scsi)
{
if (id != scsi.Id)
if(id != scsi.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(scsi);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!ScsiExists(scsi.Id))
if(!ScsiExists(scsi.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(scsi);
}
// GET: Admin/Scsis/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var scsi = await _context.Scsi
.FirstOrDefaultAsync(m => m.Id == id);
if (scsi == null)
Scsi scsi = await _context.Scsi.FirstOrDefaultAsync(m => m.Id == id);
if(scsi == null)
{
return NotFound();
}
@@ -138,19 +133,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/Scsis/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var scsi = await _context.Scsi.FindAsync(id);
Scsi scsi = await _context.Scsi.FindAsync(id);
_context.Scsi.Remove(scsi);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool ScsiExists(int id)
{
return _context.Scsi.Any(e => e.Id == id);
}
bool ScsiExists(int id) => _context.Scsi.Any(e => e.Id == id);
}
}

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class SscsController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public SscsController(DicServerContext context)
{
_context = context;
}
public SscsController(DicServerContext context) => _context = context;
// GET: Admin/Sscs
public async Task<IActionResult> Index()
{
return View(await _context.Ssc.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.Ssc.ToListAsync());
// GET: Admin/Sscs/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var ssc = await _context.Ssc
.FirstOrDefaultAsync(m => m.Id == id);
if (ssc == null)
Ssc ssc = await _context.Ssc.FirstOrDefaultAsync(m => m.Id == id);
if(ssc == null)
{
return NotFound();
}
@@ -47,89 +37,90 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/Sscs/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/Sscs/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,BlockSizeGranularity,MaxBlockLength,MinBlockLength")] Ssc ssc)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,BlockSizeGranularity,MaxBlockLength,MinBlockLength")]
Ssc ssc)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(ssc);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(ssc);
}
// GET: Admin/Sscs/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var ssc = await _context.Ssc.FindAsync(id);
if (ssc == null)
Ssc ssc = await _context.Ssc.FindAsync(id);
if(ssc == null)
{
return NotFound();
}
return View(ssc);
}
// POST: Admin/Sscs/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,BlockSizeGranularity,MaxBlockLength,MinBlockLength")] Ssc ssc)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,BlockSizeGranularity,MaxBlockLength,MinBlockLength")]
Ssc ssc)
{
if (id != ssc.Id)
if(id != ssc.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(ssc);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!SscExists(ssc.Id))
if(!SscExists(ssc.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(ssc);
}
// GET: Admin/Sscs/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var ssc = await _context.Ssc
.FirstOrDefaultAsync(m => m.Id == id);
if (ssc == null)
Ssc ssc = await _context.Ssc.FirstOrDefaultAsync(m => m.Id == id);
if(ssc == null)
{
return NotFound();
}
@@ -138,19 +129,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/Sscs/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var ssc = await _context.Ssc.FindAsync(id);
Ssc ssc = await _context.Ssc.FindAsync(id);
_context.Ssc.Remove(ssc);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool SscExists(int id)
{
return _context.Ssc.Any(e => e.Id == id);
}
bool SscExists(int id) => _context.Ssc.Any(e => e.Id == id);
}
}

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class SupportedDensitiesController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public SupportedDensitiesController(DicServerContext context)
{
_context = context;
}
public SupportedDensitiesController(DicServerContext context) => _context = context;
// GET: Admin/SupportedDensities
public async Task<IActionResult> Index()
{
return View(await _context.SupportedDensity.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.SupportedDensity.ToListAsync());
// GET: Admin/SupportedDensities/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var supportedDensity = await _context.SupportedDensity
.FirstOrDefaultAsync(m => m.Id == id);
if (supportedDensity == null)
SupportedDensity supportedDensity = await _context.SupportedDensity.FirstOrDefaultAsync(m => m.Id == id);
if(supportedDensity == null)
{
return NotFound();
}
@@ -47,89 +37,94 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/SupportedDensities/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/SupportedDensities/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,PrimaryCode,SecondaryCode,Writable,Duplicate,DefaultDensity,BitsPerMm,Width,Tracks,Capacity,Organization,Name,Description")] SupportedDensity supportedDensity)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create(
[Bind(
"Id,PrimaryCode,SecondaryCode,Writable,Duplicate,DefaultDensity,BitsPerMm,Width,Tracks,Capacity,Organization,Name,Description")]
SupportedDensity supportedDensity)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(supportedDensity);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(supportedDensity);
}
// GET: Admin/SupportedDensities/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var supportedDensity = await _context.SupportedDensity.FindAsync(id);
if (supportedDensity == null)
SupportedDensity supportedDensity = await _context.SupportedDensity.FindAsync(id);
if(supportedDensity == null)
{
return NotFound();
}
return View(supportedDensity);
}
// POST: Admin/SupportedDensities/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,PrimaryCode,SecondaryCode,Writable,Duplicate,DefaultDensity,BitsPerMm,Width,Tracks,Capacity,Organization,Name,Description")] SupportedDensity supportedDensity)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(
int id, [Bind(
"Id,PrimaryCode,SecondaryCode,Writable,Duplicate,DefaultDensity,BitsPerMm,Width,Tracks,Capacity,Organization,Name,Description")]
SupportedDensity supportedDensity)
{
if (id != supportedDensity.Id)
if(id != supportedDensity.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(supportedDensity);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!SupportedDensityExists(supportedDensity.Id))
if(!SupportedDensityExists(supportedDensity.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(supportedDensity);
}
// GET: Admin/SupportedDensities/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var supportedDensity = await _context.SupportedDensity
.FirstOrDefaultAsync(m => m.Id == id);
if (supportedDensity == null)
SupportedDensity supportedDensity = await _context.SupportedDensity.FirstOrDefaultAsync(m => m.Id == id);
if(supportedDensity == null)
{
return NotFound();
}
@@ -138,19 +133,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/SupportedDensities/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var supportedDensity = await _context.SupportedDensity.FindAsync(id);
SupportedDensity supportedDensity = await _context.SupportedDensity.FindAsync(id);
_context.SupportedDensity.Remove(supportedDensity);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool SupportedDensityExists(int id)
{
return _context.SupportedDensity.Any(e => e.Id == id);
}
bool SupportedDensityExists(int id) => _context.SupportedDensity.Any(e => e.Id == id);
}
}

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class TestedMediasController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public TestedMediasController(DicServerContext context)
{
_context = context;
}
public TestedMediasController(DicServerContext context) => _context = context;
// GET: Admin/TestedMedias
public async Task<IActionResult> Index()
{
return View(await _context.TestedMedia.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.TestedMedia.ToListAsync());
// GET: Admin/TestedMedias/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var testedMedia = await _context.TestedMedia
.FirstOrDefaultAsync(m => m.Id == id);
if (testedMedia == null)
TestedMedia testedMedia = await _context.TestedMedia.FirstOrDefaultAsync(m => m.Id == id);
if(testedMedia == null)
{
return NotFound();
}
@@ -47,89 +37,93 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/TestedMedias/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/TestedMedias/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,IdentifyData,Blocks,BlockSize,CanReadAACS,CanReadADIP,CanReadATIP,CanReadBCA,CanReadC2Pointers,CanReadCMI,CanReadCorrectedSubchannel,CanReadCorrectedSubchannelWithC2,CanReadDCB,CanReadDDS,CanReadDMI,CanReadDiscInformation,CanReadFullTOC,CanReadHDCMI,CanReadLayerCapacity,CanReadFirstTrackPreGap,CanReadLeadIn,CanReadLeadOut,CanReadMediaID,CanReadMediaSerial,CanReadPAC,CanReadPFI,CanReadPMA,CanReadPQSubchannel,CanReadPQSubchannelWithC2,CanReadPRI,CanReadRWSubchannel,CanReadRWSubchannelWithC2,CanReadRecordablePFI,CanReadSpareAreaInformation,CanReadTOC,Density,LongBlockSize,Manufacturer,MediaIsRecognized,MediumType,MediumTypeName,Model,SupportsHLDTSTReadRawDVD,SupportsNECReadCDDA,SupportsPioneerReadCDDA,SupportsPioneerReadCDDAMSF,SupportsPlextorReadCDDA,SupportsPlextorReadRawDVD,SupportsRead10,SupportsRead12,SupportsRead16,SupportsRead6,SupportsReadCapacity16,SupportsReadCapacity,SupportsReadCd,SupportsReadCdMsf,SupportsReadCdRaw,SupportsReadCdMsfRaw,SupportsReadLong16,SupportsReadLong,ModeSense6Data,ModeSense10Data,LBASectors,LBA48Sectors,LogicalAlignment,NominalRotationRate,PhysicalBlockSize,SolidStateDevice,UnformattedBPT,UnformattedBPS,SupportsReadDmaLba,SupportsReadDmaRetryLba,SupportsReadLba,SupportsReadRetryLba,SupportsReadLongLba,SupportsReadLongRetryLba,SupportsSeekLba,SupportsReadDmaLba48,SupportsReadLba48,SupportsReadDma,SupportsReadDmaRetry,SupportsReadRetry,SupportsReadSectors,SupportsReadLongRetry,SupportsSeek,CanReadingIntersessionLeadIn,CanReadingIntersessionLeadOut,IntersessionLeadInData,IntersessionLeadOutData,Read6Data,Read10Data,Read12Data,Read16Data,ReadLong10Data,ReadLong16Data,ReadSectorsData,ReadSectorsRetryData,ReadDmaData,ReadDmaRetryData,ReadLbaData,ReadRetryLbaData,ReadDmaLbaData,ReadDmaRetryLbaData,ReadLba48Data,ReadDmaLba48Data,ReadLongData,ReadLongRetryData,ReadLongLbaData,ReadLongRetryLbaData,TocData,FullTocData,AtipData,PmaData,ReadCdData,ReadCdMsfData,ReadCdFullData,ReadCdMsfFullData,Track1PregapData,LeadInData,LeadOutData,C2PointersData,PQSubchannelData,RWSubchannelData,CorrectedSubchannelData,PQSubchannelWithC2Data,RWSubchannelWithC2Data,CorrectedSubchannelWithC2Data,PfiData,DmiData,CmiData,DvdBcaData,DvdAacsData,DvdDdsData,DvdSaiData,PriData,EmbossedPfiData,AdipData,DcbData,HdCmiData,DvdLayerData,BluBcaData,BluDdsData,BluSaiData,BluDiData,BluPacData,PlextorReadCddaData,PioneerReadCddaData,PioneerReadCddaMsfData,NecReadCddaData,PlextorReadRawDVDData,HLDTSTReadRawDVDData")] TestedMedia testedMedia)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create(
[Bind(
"Id,IdentifyData,Blocks,BlockSize,CanReadAACS,CanReadADIP,CanReadATIP,CanReadBCA,CanReadC2Pointers,CanReadCMI,CanReadCorrectedSubchannel,CanReadCorrectedSubchannelWithC2,CanReadDCB,CanReadDDS,CanReadDMI,CanReadDiscInformation,CanReadFullTOC,CanReadHDCMI,CanReadLayerCapacity,CanReadFirstTrackPreGap,CanReadLeadIn,CanReadLeadOut,CanReadMediaID,CanReadMediaSerial,CanReadPAC,CanReadPFI,CanReadPMA,CanReadPQSubchannel,CanReadPQSubchannelWithC2,CanReadPRI,CanReadRWSubchannel,CanReadRWSubchannelWithC2,CanReadRecordablePFI,CanReadSpareAreaInformation,CanReadTOC,Density,LongBlockSize,Manufacturer,MediaIsRecognized,MediumType,MediumTypeName,Model,SupportsHLDTSTReadRawDVD,SupportsNECReadCDDA,SupportsPioneerReadCDDA,SupportsPioneerReadCDDAMSF,SupportsPlextorReadCDDA,SupportsPlextorReadRawDVD,SupportsRead10,SupportsRead12,SupportsRead16,SupportsRead6,SupportsReadCapacity16,SupportsReadCapacity,SupportsReadCd,SupportsReadCdMsf,SupportsReadCdRaw,SupportsReadCdMsfRaw,SupportsReadLong16,SupportsReadLong,ModeSense6Data,ModeSense10Data,LBASectors,LBA48Sectors,LogicalAlignment,NominalRotationRate,PhysicalBlockSize,SolidStateDevice,UnformattedBPT,UnformattedBPS,SupportsReadDmaLba,SupportsReadDmaRetryLba,SupportsReadLba,SupportsReadRetryLba,SupportsReadLongLba,SupportsReadLongRetryLba,SupportsSeekLba,SupportsReadDmaLba48,SupportsReadLba48,SupportsReadDma,SupportsReadDmaRetry,SupportsReadRetry,SupportsReadSectors,SupportsReadLongRetry,SupportsSeek,CanReadingIntersessionLeadIn,CanReadingIntersessionLeadOut,IntersessionLeadInData,IntersessionLeadOutData,Read6Data,Read10Data,Read12Data,Read16Data,ReadLong10Data,ReadLong16Data,ReadSectorsData,ReadSectorsRetryData,ReadDmaData,ReadDmaRetryData,ReadLbaData,ReadRetryLbaData,ReadDmaLbaData,ReadDmaRetryLbaData,ReadLba48Data,ReadDmaLba48Data,ReadLongData,ReadLongRetryData,ReadLongLbaData,ReadLongRetryLbaData,TocData,FullTocData,AtipData,PmaData,ReadCdData,ReadCdMsfData,ReadCdFullData,ReadCdMsfFullData,Track1PregapData,LeadInData,LeadOutData,C2PointersData,PQSubchannelData,RWSubchannelData,CorrectedSubchannelData,PQSubchannelWithC2Data,RWSubchannelWithC2Data,CorrectedSubchannelWithC2Data,PfiData,DmiData,CmiData,DvdBcaData,DvdAacsData,DvdDdsData,DvdSaiData,PriData,EmbossedPfiData,AdipData,DcbData,HdCmiData,DvdLayerData,BluBcaData,BluDdsData,BluSaiData,BluDiData,BluPacData,PlextorReadCddaData,PioneerReadCddaData,PioneerReadCddaMsfData,NecReadCddaData,PlextorReadRawDVDData,HLDTSTReadRawDVDData")]
TestedMedia testedMedia)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(testedMedia);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(testedMedia);
}
// GET: Admin/TestedMedias/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var testedMedia = await _context.TestedMedia.FindAsync(id);
if (testedMedia == null)
TestedMedia testedMedia = await _context.TestedMedia.FindAsync(id);
if(testedMedia == null)
{
return NotFound();
}
return View(testedMedia);
}
// POST: Admin/TestedMedias/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,IdentifyData,Blocks,BlockSize,CanReadAACS,CanReadADIP,CanReadATIP,CanReadBCA,CanReadC2Pointers,CanReadCMI,CanReadCorrectedSubchannel,CanReadCorrectedSubchannelWithC2,CanReadDCB,CanReadDDS,CanReadDMI,CanReadDiscInformation,CanReadFullTOC,CanReadHDCMI,CanReadLayerCapacity,CanReadFirstTrackPreGap,CanReadLeadIn,CanReadLeadOut,CanReadMediaID,CanReadMediaSerial,CanReadPAC,CanReadPFI,CanReadPMA,CanReadPQSubchannel,CanReadPQSubchannelWithC2,CanReadPRI,CanReadRWSubchannel,CanReadRWSubchannelWithC2,CanReadRecordablePFI,CanReadSpareAreaInformation,CanReadTOC,Density,LongBlockSize,Manufacturer,MediaIsRecognized,MediumType,MediumTypeName,Model,SupportsHLDTSTReadRawDVD,SupportsNECReadCDDA,SupportsPioneerReadCDDA,SupportsPioneerReadCDDAMSF,SupportsPlextorReadCDDA,SupportsPlextorReadRawDVD,SupportsRead10,SupportsRead12,SupportsRead16,SupportsRead6,SupportsReadCapacity16,SupportsReadCapacity,SupportsReadCd,SupportsReadCdMsf,SupportsReadCdRaw,SupportsReadCdMsfRaw,SupportsReadLong16,SupportsReadLong,ModeSense6Data,ModeSense10Data,LBASectors,LBA48Sectors,LogicalAlignment,NominalRotationRate,PhysicalBlockSize,SolidStateDevice,UnformattedBPT,UnformattedBPS,SupportsReadDmaLba,SupportsReadDmaRetryLba,SupportsReadLba,SupportsReadRetryLba,SupportsReadLongLba,SupportsReadLongRetryLba,SupportsSeekLba,SupportsReadDmaLba48,SupportsReadLba48,SupportsReadDma,SupportsReadDmaRetry,SupportsReadRetry,SupportsReadSectors,SupportsReadLongRetry,SupportsSeek,CanReadingIntersessionLeadIn,CanReadingIntersessionLeadOut,IntersessionLeadInData,IntersessionLeadOutData,Read6Data,Read10Data,Read12Data,Read16Data,ReadLong10Data,ReadLong16Data,ReadSectorsData,ReadSectorsRetryData,ReadDmaData,ReadDmaRetryData,ReadLbaData,ReadRetryLbaData,ReadDmaLbaData,ReadDmaRetryLbaData,ReadLba48Data,ReadDmaLba48Data,ReadLongData,ReadLongRetryData,ReadLongLbaData,ReadLongRetryLbaData,TocData,FullTocData,AtipData,PmaData,ReadCdData,ReadCdMsfData,ReadCdFullData,ReadCdMsfFullData,Track1PregapData,LeadInData,LeadOutData,C2PointersData,PQSubchannelData,RWSubchannelData,CorrectedSubchannelData,PQSubchannelWithC2Data,RWSubchannelWithC2Data,CorrectedSubchannelWithC2Data,PfiData,DmiData,CmiData,DvdBcaData,DvdAacsData,DvdDdsData,DvdSaiData,PriData,EmbossedPfiData,AdipData,DcbData,HdCmiData,DvdLayerData,BluBcaData,BluDdsData,BluSaiData,BluDiData,BluPacData,PlextorReadCddaData,PioneerReadCddaData,PioneerReadCddaMsfData,NecReadCddaData,PlextorReadRawDVDData,HLDTSTReadRawDVDData")] TestedMedia testedMedia)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind(
"Id,IdentifyData,Blocks,BlockSize,CanReadAACS,CanReadADIP,CanReadATIP,CanReadBCA,CanReadC2Pointers,CanReadCMI,CanReadCorrectedSubchannel,CanReadCorrectedSubchannelWithC2,CanReadDCB,CanReadDDS,CanReadDMI,CanReadDiscInformation,CanReadFullTOC,CanReadHDCMI,CanReadLayerCapacity,CanReadFirstTrackPreGap,CanReadLeadIn,CanReadLeadOut,CanReadMediaID,CanReadMediaSerial,CanReadPAC,CanReadPFI,CanReadPMA,CanReadPQSubchannel,CanReadPQSubchannelWithC2,CanReadPRI,CanReadRWSubchannel,CanReadRWSubchannelWithC2,CanReadRecordablePFI,CanReadSpareAreaInformation,CanReadTOC,Density,LongBlockSize,Manufacturer,MediaIsRecognized,MediumType,MediumTypeName,Model,SupportsHLDTSTReadRawDVD,SupportsNECReadCDDA,SupportsPioneerReadCDDA,SupportsPioneerReadCDDAMSF,SupportsPlextorReadCDDA,SupportsPlextorReadRawDVD,SupportsRead10,SupportsRead12,SupportsRead16,SupportsRead6,SupportsReadCapacity16,SupportsReadCapacity,SupportsReadCd,SupportsReadCdMsf,SupportsReadCdRaw,SupportsReadCdMsfRaw,SupportsReadLong16,SupportsReadLong,ModeSense6Data,ModeSense10Data,LBASectors,LBA48Sectors,LogicalAlignment,NominalRotationRate,PhysicalBlockSize,SolidStateDevice,UnformattedBPT,UnformattedBPS,SupportsReadDmaLba,SupportsReadDmaRetryLba,SupportsReadLba,SupportsReadRetryLba,SupportsReadLongLba,SupportsReadLongRetryLba,SupportsSeekLba,SupportsReadDmaLba48,SupportsReadLba48,SupportsReadDma,SupportsReadDmaRetry,SupportsReadRetry,SupportsReadSectors,SupportsReadLongRetry,SupportsSeek,CanReadingIntersessionLeadIn,CanReadingIntersessionLeadOut,IntersessionLeadInData,IntersessionLeadOutData,Read6Data,Read10Data,Read12Data,Read16Data,ReadLong10Data,ReadLong16Data,ReadSectorsData,ReadSectorsRetryData,ReadDmaData,ReadDmaRetryData,ReadLbaData,ReadRetryLbaData,ReadDmaLbaData,ReadDmaRetryLbaData,ReadLba48Data,ReadDmaLba48Data,ReadLongData,ReadLongRetryData,ReadLongLbaData,ReadLongRetryLbaData,TocData,FullTocData,AtipData,PmaData,ReadCdData,ReadCdMsfData,ReadCdFullData,ReadCdMsfFullData,Track1PregapData,LeadInData,LeadOutData,C2PointersData,PQSubchannelData,RWSubchannelData,CorrectedSubchannelData,PQSubchannelWithC2Data,RWSubchannelWithC2Data,CorrectedSubchannelWithC2Data,PfiData,DmiData,CmiData,DvdBcaData,DvdAacsData,DvdDdsData,DvdSaiData,PriData,EmbossedPfiData,AdipData,DcbData,HdCmiData,DvdLayerData,BluBcaData,BluDdsData,BluSaiData,BluDiData,BluPacData,PlextorReadCddaData,PioneerReadCddaData,PioneerReadCddaMsfData,NecReadCddaData,PlextorReadRawDVDData,HLDTSTReadRawDVDData")]
TestedMedia testedMedia)
{
if (id != testedMedia.Id)
if(id != testedMedia.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(testedMedia);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!TestedMediaExists(testedMedia.Id))
if(!TestedMediaExists(testedMedia.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(testedMedia);
}
// GET: Admin/TestedMedias/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var testedMedia = await _context.TestedMedia
.FirstOrDefaultAsync(m => m.Id == id);
if (testedMedia == null)
TestedMedia testedMedia = await _context.TestedMedia.FirstOrDefaultAsync(m => m.Id == id);
if(testedMedia == null)
{
return NotFound();
}
@@ -138,19 +132,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/TestedMedias/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var testedMedia = await _context.TestedMedia.FindAsync(id);
TestedMedia testedMedia = await _context.TestedMedia.FindAsync(id);
_context.TestedMedia.Remove(testedMedia);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool TestedMediaExists(int id)
{
return _context.TestedMedia.Any(e => e.Id == id);
}
bool TestedMediaExists(int id) => _context.TestedMedia.Any(e => e.Id == id);
}
}

View File

@@ -1,44 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class TestedSequentialMediasController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public TestedSequentialMediasController(DicServerContext context)
{
_context = context;
}
public TestedSequentialMediasController(DicServerContext context) => _context = context;
// GET: Admin/TestedSequentialMedias
public async Task<IActionResult> Index()
{
return View(await _context.TestedSequentialMedia.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.TestedSequentialMedia.ToListAsync());
// GET: Admin/TestedSequentialMedias/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var testedSequentialMedia = await _context.TestedSequentialMedia
.FirstOrDefaultAsync(m => m.Id == id);
if (testedSequentialMedia == null)
TestedSequentialMedia testedSequentialMedia =
await _context.TestedSequentialMedia.FirstOrDefaultAsync(m => m.Id == id);
if(testedSequentialMedia == null)
{
return NotFound();
}
@@ -47,89 +38,95 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/TestedSequentialMedias/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/TestedSequentialMedias/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,CanReadMediaSerial,Density,Manufacturer,MediaIsRecognized,MediumType,MediumTypeName,Model,ModeSense6Data,ModeSense10Data")] TestedSequentialMedia testedSequentialMedia)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create(
[Bind(
"Id,CanReadMediaSerial,Density,Manufacturer,MediaIsRecognized,MediumType,MediumTypeName,Model,ModeSense6Data,ModeSense10Data")]
TestedSequentialMedia testedSequentialMedia)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(testedSequentialMedia);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(testedSequentialMedia);
}
// GET: Admin/TestedSequentialMedias/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var testedSequentialMedia = await _context.TestedSequentialMedia.FindAsync(id);
if (testedSequentialMedia == null)
TestedSequentialMedia testedSequentialMedia = await _context.TestedSequentialMedia.FindAsync(id);
if(testedSequentialMedia == null)
{
return NotFound();
}
return View(testedSequentialMedia);
}
// POST: Admin/TestedSequentialMedias/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,CanReadMediaSerial,Density,Manufacturer,MediaIsRecognized,MediumType,MediumTypeName,Model,ModeSense6Data,ModeSense10Data")] TestedSequentialMedia testedSequentialMedia)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(
int id, [Bind(
"Id,CanReadMediaSerial,Density,Manufacturer,MediaIsRecognized,MediumType,MediumTypeName,Model,ModeSense6Data,ModeSense10Data")]
TestedSequentialMedia testedSequentialMedia)
{
if (id != testedSequentialMedia.Id)
if(id != testedSequentialMedia.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(testedSequentialMedia);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!TestedSequentialMediaExists(testedSequentialMedia.Id))
if(!TestedSequentialMediaExists(testedSequentialMedia.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(testedSequentialMedia);
}
// GET: Admin/TestedSequentialMedias/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var testedSequentialMedia = await _context.TestedSequentialMedia
.FirstOrDefaultAsync(m => m.Id == id);
if (testedSequentialMedia == null)
TestedSequentialMedia testedSequentialMedia =
await _context.TestedSequentialMedia.FirstOrDefaultAsync(m => m.Id == id);
if(testedSequentialMedia == null)
{
return NotFound();
}
@@ -138,19 +135,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/TestedSequentialMedias/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var testedSequentialMedia = await _context.TestedSequentialMedia.FindAsync(id);
TestedSequentialMedia testedSequentialMedia = await _context.TestedSequentialMedia.FindAsync(id);
_context.TestedSequentialMedia.Remove(testedSequentialMedia);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool TestedSequentialMediaExists(int id)
{
return _context.TestedSequentialMedia.Any(e => e.Id == id);
}
bool TestedSequentialMediaExists(int id) => _context.TestedSequentialMedia.Any(e => e.Id == id);
}
}

View File

@@ -9,8 +9,7 @@ using Microsoft.EntityFrameworkCore.Query;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class UsbProductsController : Controller
{
readonly DicServerContext _context;

View File

@@ -7,8 +7,7 @@ using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class UsbVendorsController : Controller
{
readonly DicServerContext _context;

View File

@@ -1,44 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class UsbsController : Controller
{
private readonly DicServerContext _context;
readonly DicServerContext _context;
public UsbsController(DicServerContext context)
{
_context = context;
}
public UsbsController(DicServerContext context) => _context = context;
// GET: Admin/Usbs
public async Task<IActionResult> Index()
{
return View(await _context.Usb.ToListAsync());
}
public async Task<IActionResult> Index() => View(await _context.Usb.ToListAsync());
// GET: Admin/Usbs/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var usb = await _context.Usb
.FirstOrDefaultAsync(m => m.Id == id);
if (usb == null)
Usb usb = await _context.Usb.FirstOrDefaultAsync(m => m.Id == id);
if(usb == null)
{
return NotFound();
}
@@ -47,89 +37,92 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// GET: Admin/Usbs/Create
public IActionResult Create()
{
return View();
}
public IActionResult Create() => View();
// POST: Admin/Usbs/Create
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,VendorID,ProductID,Manufacturer,Product,RemovableMedia,Descriptors")] Usb usb)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Create(
[Bind("Id,VendorID,ProductID,Manufacturer,Product,RemovableMedia,Descriptors")]
Usb usb)
{
if (ModelState.IsValid)
if(ModelState.IsValid)
{
_context.Add(usb);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
return View(usb);
}
// GET: Admin/Usbs/Edit/5
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var usb = await _context.Usb.FindAsync(id);
if (usb == null)
Usb usb = await _context.Usb.FindAsync(id);
if(usb == null)
{
return NotFound();
}
return View(usb);
}
// POST: Admin/Usbs/Edit/5
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,VendorID,ProductID,Manufacturer,Product,RemovableMedia,Descriptors")] Usb usb)
[HttpPost, ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(
int id, [Bind("Id,VendorID,ProductID,Manufacturer,Product,RemovableMedia,Descriptors")]
Usb usb)
{
if (id != usb.Id)
if(id != usb.Id)
{
return NotFound();
}
if (ModelState.IsValid)
if(ModelState.IsValid)
{
try
{
_context.Update(usb);
await _context.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
catch(DbUpdateConcurrencyException)
{
if (!UsbExists(usb.Id))
if(!UsbExists(usb.Id))
{
return NotFound();
}
else
{
throw;
}
}
return RedirectToAction(nameof(Index));
}
return View(usb);
}
// GET: Admin/Usbs/Delete/5
public async Task<IActionResult> Delete(int? id)
{
if (id == null)
if(id == null)
{
return NotFound();
}
var usb = await _context.Usb
.FirstOrDefaultAsync(m => m.Id == id);
if (usb == null)
Usb usb = await _context.Usb.FirstOrDefaultAsync(m => m.Id == id);
if(usb == null)
{
return NotFound();
}
@@ -138,19 +131,16 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
}
// POST: Admin/Usbs/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
[HttpPost, ActionName("Delete"), ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var usb = await _context.Usb.FindAsync(id);
Usb usb = await _context.Usb.FindAsync(id);
_context.Usb.Remove(usb);
await _context.SaveChangesAsync();
return RedirectToAction(nameof(Index));
}
private bool UsbExists(int id)
{
return _context.Usb.Any(e => e.Id == id);
}
bool UsbExists(int id) => _context.Usb.Any(e => e.Id == id);
}
}

View File

@@ -7,8 +7,7 @@ using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
[Area("Admin")]
[Authorize]
[Area("Admin"), Authorize]
public class VersionsController : Controller
{
readonly DicServerContext _context;

View File

@@ -45,13 +45,11 @@
<span asp-validation-for="Identify" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Create" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>

View File

@@ -38,17 +38,16 @@
<h4>Ata</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Identify)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Identify)
</dd>
</dl>
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

View File

@@ -37,15 +37,15 @@
<h4>Ata</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Identify)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Identify)
</dd>
</dl>
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -34,7 +34,6 @@
// ****************************************************************************/
}
ATA IDENTIFY DEVICE responses
<table class="table">
<thead>
<tr>
@@ -45,7 +44,8 @@ ATA IDENTIFY DEVICE responses
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.IdentifyDevice.Value.Model)
@@ -55,6 +55,6 @@ ATA IDENTIFY DEVICE responses
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</tr>
}
}
</tbody>
</table>

View File

@@ -55,13 +55,11 @@
<span asp-validation-for="BlockLength" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Create" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>

View File

@@ -38,29 +38,28 @@
<h4>BlockDescriptor</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Density)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Density)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Blocks)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Blocks)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.BlockLength)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.BlockLength)
</dd>
</dl>
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

View File

@@ -37,27 +37,27 @@
<h4>BlockDescriptor</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Density)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Density)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Blocks)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Blocks)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.BlockLength)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.BlockLength)
</dd>
</dl>
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -56,7 +56,7 @@
<span asp-validation-for="BlockLength" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>

View File

@@ -65,7 +65,7 @@
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-secondary">Edit</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</td>
</tr>
}
</tbody>

View File

@@ -55,13 +55,11 @@
<span asp-validation-for="Sectors" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Create" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>

View File

@@ -38,29 +38,28 @@
<h4>Chs</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Cylinders)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Cylinders)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Heads)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Heads)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Sectors)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Sectors)
</dd>
</dl>
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

View File

@@ -37,27 +37,27 @@
<h4>Chs</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Cylinders)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Cylinders)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Heads)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Heads)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Sectors)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Sectors)
</dd>
</dl>
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -56,7 +56,7 @@
<span asp-validation-for="Sectors" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>

View File

@@ -49,7 +49,8 @@
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Cylinders)
@@ -64,8 +65,8 @@
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-secondary">Edit</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</td>
</tr>
}
}
</tbody>
</table>

View File

@@ -54,6 +54,6 @@
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

View File

@@ -53,5 +53,5 @@
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -51,10 +51,9 @@
<span asp-validation-for="Count" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>
</div>
</div>

View File

@@ -59,7 +59,7 @@
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-secondary">Edit</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</td>
</tr>
}
</tbody>

View File

@@ -84,6 +84,6 @@
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

View File

@@ -83,5 +83,5 @@
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -76,10 +76,9 @@
<span asp-validation-for="Agreement" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>
</div>
</div>

View File

@@ -89,7 +89,7 @@
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-secondary">Edit</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</td>
</tr>
}
</tbody>

View File

@@ -45,13 +45,11 @@
<span asp-validation-for="Code" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Create" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>

View File

@@ -38,17 +38,16 @@
<h4>DensityCode</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Code)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Code)
</dd>
</dl>
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

View File

@@ -37,15 +37,15 @@
<h4>DensityCode</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Code)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Code)
</dd>
</dl>
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -46,7 +46,7 @@
<span asp-validation-for="Code" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>

View File

@@ -43,7 +43,8 @@
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Code)
@@ -52,8 +53,8 @@
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-secondary">Edit</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</td>
</tr>
}
}
</tbody>
</table>

View File

@@ -66,6 +66,6 @@
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

View File

@@ -65,5 +65,5 @@
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -61,10 +61,9 @@
<span asp-validation-for="Bus" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>
</div>
</div>

View File

@@ -71,7 +71,7 @@
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-secondary">Edit</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</td>
</tr>
}
</tbody>

View File

@@ -90,6 +90,6 @@
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

View File

@@ -89,5 +89,5 @@
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -81,10 +81,9 @@
<span asp-validation-for="Type" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>
</div>
</div>

View File

@@ -95,7 +95,7 @@
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-secondary">Edit</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</td>
</tr>
}
</tbody>

View File

@@ -54,6 +54,6 @@
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

View File

@@ -53,5 +53,5 @@
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -51,10 +51,9 @@
<span asp-validation-for="Count" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>
</div>
</div>

View File

@@ -59,7 +59,7 @@
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-secondary">Edit</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</td>
</tr>
}
</tbody>

View File

@@ -54,6 +54,6 @@
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

View File

@@ -53,5 +53,5 @@
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -51,10 +51,9 @@
<span asp-validation-for="Count" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>
</div>
</div>

View File

@@ -59,7 +59,7 @@
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-secondary">Edit</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</td>
</tr>
}
</tbody>

View File

@@ -59,19 +59,17 @@
<input asp-for="Product" class="form-control" />
<span asp-validation-for="Product" class="text-danger"></span>
</div>
<div class="form-group form-check">
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="RemovableMedia" /> @Html.DisplayNameFor(model => model.RemovableMedia)
</label>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Create" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>

View File

@@ -38,41 +38,40 @@
<h4>FireWire</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.VendorID)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.VendorID)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.ProductID)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.ProductID)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Manufacturer)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Manufacturer)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Product)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Product)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.RemovableMedia)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.RemovableMedia)
</dd>
</dl>
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

View File

@@ -37,39 +37,39 @@
<h4>FireWire</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.VendorID)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.VendorID)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.ProductID)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.ProductID)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Manufacturer)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Manufacturer)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Product)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Product)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.RemovableMedia)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.RemovableMedia)
</dd>
</dl>
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -60,13 +60,13 @@
<input asp-for="Product" class="form-control" />
<span asp-validation-for="Product" class="text-danger"></span>
</div>
<div class="form-group form-check">
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="RemovableMedia" /> @Html.DisplayNameFor(model => model.RemovableMedia)
</label>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>

View File

@@ -55,7 +55,8 @@
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.VendorID)
@@ -76,8 +77,8 @@
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-secondary">Edit</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</td>
</tr>
}
}
</tbody>
</table>

View File

@@ -54,6 +54,6 @@
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

View File

@@ -53,5 +53,5 @@
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -51,10 +51,9 @@
<span asp-validation-for="Count" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>
</div>
</div>

View File

@@ -59,7 +59,7 @@
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-secondary">Edit</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</td>
</tr>
}
</tbody>

View File

@@ -60,6 +60,6 @@
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

View File

@@ -59,5 +59,5 @@
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -56,10 +56,9 @@
<span asp-validation-for="Count" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>
</div>
</div>

View File

@@ -65,7 +65,7 @@
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-secondary">Edit</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</td>
</tr>
}
</tbody>

View File

@@ -45,13 +45,11 @@
<span asp-validation-for="ModeSense2AData" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Create" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>

View File

@@ -38,17 +38,16 @@
<h4>Mmc</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.ModeSense2AData)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.ModeSense2AData)
</dd>
</dl>
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

View File

@@ -37,15 +37,15 @@
<h4>Mmc</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.ModeSense2AData)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.ModeSense2AData)
</dd>
</dl>
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -46,7 +46,7 @@
<span asp-validation-for="ModeSense2AData" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>

View File

@@ -43,7 +43,8 @@
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.ModeSense2AData)
@@ -52,8 +53,8 @@
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-secondary">Edit</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</td>
</tr>
}
}
</tbody>
</table>

View File

@@ -36,637 +36,635 @@
<h4>MmcFeatures</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<label asp-for="AACSVersion" class="control-label"></label>
<input asp-for="AACSVersion" class="form-control" />
<span asp-validation-for="AACSVersion" class="text-danger"></span>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="AGIDs" class="control-label"></label>
<input asp-for="AGIDs" class="form-control" />
<span asp-validation-for="AGIDs" class="text-danger"></span>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="BindingNonceBlocks" class="control-label"></label>
<input asp-for="BindingNonceBlocks" class="form-control" />
<span asp-validation-for="BindingNonceBlocks" class="text-danger"></span>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="BlocksPerReadableUnit" class="control-label"></label>
<input asp-for="BlocksPerReadableUnit" class="form-control" />
<span asp-validation-for="BlocksPerReadableUnit" class="text-danger"></span>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="BufferUnderrunFreeInDVD" /> @Html.DisplayNameFor(model => model.BufferUnderrunFreeInDVD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="BufferUnderrunFreeInSAO" /> @Html.DisplayNameFor(model => model.BufferUnderrunFreeInSAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="BufferUnderrunFreeInTAO" /> @Html.DisplayNameFor(model => model.BufferUnderrunFreeInTAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanAudioScan" /> @Html.DisplayNameFor(model => model.CanAudioScan)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanEject" /> @Html.DisplayNameFor(model => model.CanEject)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanEraseSector" /> @Html.DisplayNameFor(model => model.CanEraseSector)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanExpandBDRESpareArea" /> @Html.DisplayNameFor(model => model.CanExpandBDRESpareArea)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanFormat" /> @Html.DisplayNameFor(model => model.CanFormat)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanFormatBDREWithoutSpare" /> @Html.DisplayNameFor(model => model.CanFormatBDREWithoutSpare)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanFormatCert" /> @Html.DisplayNameFor(model => model.CanFormatCert)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanFormatFRF" /> @Html.DisplayNameFor(model => model.CanFormatFRF)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanFormatQCert" /> @Html.DisplayNameFor(model => model.CanFormatQCert)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanFormatRRM" /> @Html.DisplayNameFor(model => model.CanFormatRRM)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanGenerateBindingNonce" /> @Html.DisplayNameFor(model => model.CanGenerateBindingNonce)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanLoad" /> @Html.DisplayNameFor(model => model.CanLoad)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanMuteSeparateChannels" /> @Html.DisplayNameFor(model => model.CanMuteSeparateChannels)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanOverwriteSAOTrack" /> @Html.DisplayNameFor(model => model.CanOverwriteSAOTrack)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanOverwriteTAOTrack" /> @Html.DisplayNameFor(model => model.CanOverwriteTAOTrack)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanPlayCDAudio" /> @Html.DisplayNameFor(model => model.CanPlayCDAudio)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanPseudoOverwriteBDR" /> @Html.DisplayNameFor(model => model.CanPseudoOverwriteBDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadAllDualR" /> @Html.DisplayNameFor(model => model.CanReadAllDualR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadAllDualRW" /> @Html.DisplayNameFor(model => model.CanReadAllDualRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadBD" /> @Html.DisplayNameFor(model => model.CanReadBD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadBDR" /> @Html.DisplayNameFor(model => model.CanReadBDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadBDRE1" /> @Html.DisplayNameFor(model => model.CanReadBDRE1)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadBDRE2" /> @Html.DisplayNameFor(model => model.CanReadBDRE2)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadBDROM" /> @Html.DisplayNameFor(model => model.CanReadBDROM)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadBluBCA" /> @Html.DisplayNameFor(model => model.CanReadBluBCA)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadCD" /> @Html.DisplayNameFor(model => model.CanReadCD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadCDMRW" /> @Html.DisplayNameFor(model => model.CanReadCDMRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadCPRM_MKB" /> @Html.DisplayNameFor(model => model.CanReadCPRM_MKB)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDDCD" /> @Html.DisplayNameFor(model => model.CanReadDDCD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDVD" /> @Html.DisplayNameFor(model => model.CanReadDVD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDVDPlusMRW" /> @Html.DisplayNameFor(model => model.CanReadDVDPlusMRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDVDPlusR" /> @Html.DisplayNameFor(model => model.CanReadDVDPlusR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDVDPlusRDL" /> @Html.DisplayNameFor(model => model.CanReadDVDPlusRDL)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDVDPlusRW" /> @Html.DisplayNameFor(model => model.CanReadDVDPlusRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDVDPlusRWDL" /> @Html.DisplayNameFor(model => model.CanReadDVDPlusRWDL)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDriveAACSCertificate" /> @Html.DisplayNameFor(model => model.CanReadDriveAACSCertificate)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadHDDVD" /> @Html.DisplayNameFor(model => model.CanReadHDDVD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadHDDVDR" /> @Html.DisplayNameFor(model => model.CanReadHDDVDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadHDDVDRAM" /> @Html.DisplayNameFor(model => model.CanReadHDDVDRAM)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadLeadInCDText" /> @Html.DisplayNameFor(model => model.CanReadLeadInCDText)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadOldBDR" /> @Html.DisplayNameFor(model => model.CanReadOldBDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadOldBDRE" /> @Html.DisplayNameFor(model => model.CanReadOldBDRE)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadOldBDROM" /> @Html.DisplayNameFor(model => model.CanReadOldBDROM)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadSpareAreaInformation" /> @Html.DisplayNameFor(model => model.CanReadSpareAreaInformation)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReportDriveSerial" /> @Html.DisplayNameFor(model => model.CanReportDriveSerial)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReportMediaSerial" /> @Html.DisplayNameFor(model => model.CanReportMediaSerial)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanTestWriteDDCDR" /> @Html.DisplayNameFor(model => model.CanTestWriteDDCDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanTestWriteDVD" /> @Html.DisplayNameFor(model => model.CanTestWriteDVD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanTestWriteInSAO" /> @Html.DisplayNameFor(model => model.CanTestWriteInSAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanTestWriteInTAO" /> @Html.DisplayNameFor(model => model.CanTestWriteInTAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanUpgradeFirmware" /> @Html.DisplayNameFor(model => model.CanUpgradeFirmware)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteBD" /> @Html.DisplayNameFor(model => model.CanWriteBD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteBDR" /> @Html.DisplayNameFor(model => model.CanWriteBDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteBDRE1" /> @Html.DisplayNameFor(model => model.CanWriteBDRE1)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteBDRE2" /> @Html.DisplayNameFor(model => model.CanWriteBDRE2)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteBusEncryptedBlocks" /> @Html.DisplayNameFor(model => model.CanWriteBusEncryptedBlocks)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteCDMRW" /> @Html.DisplayNameFor(model => model.CanWriteCDMRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteCDRW" /> @Html.DisplayNameFor(model => model.CanWriteCDRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteCDRWCAV" /> @Html.DisplayNameFor(model => model.CanWriteCDRWCAV)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteCDSAO" /> @Html.DisplayNameFor(model => model.CanWriteCDSAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteCDTAO" /> @Html.DisplayNameFor(model => model.CanWriteCDTAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteCSSManagedDVD" /> @Html.DisplayNameFor(model => model.CanWriteCSSManagedDVD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDDCDR" /> @Html.DisplayNameFor(model => model.CanWriteDDCDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDDCDRW" /> @Html.DisplayNameFor(model => model.CanWriteDDCDRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDPlusMRW" /> @Html.DisplayNameFor(model => model.CanWriteDVDPlusMRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDPlusR" /> @Html.DisplayNameFor(model => model.CanWriteDVDPlusR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDPlusRDL" /> @Html.DisplayNameFor(model => model.CanWriteDVDPlusRDL)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDPlusRW" /> @Html.DisplayNameFor(model => model.CanWriteDVDPlusRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDPlusRWDL" /> @Html.DisplayNameFor(model => model.CanWriteDVDPlusRWDL)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDR" /> @Html.DisplayNameFor(model => model.CanWriteDVDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDRDL" /> @Html.DisplayNameFor(model => model.CanWriteDVDRDL)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDRW" /> @Html.DisplayNameFor(model => model.CanWriteDVDRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteHDDVDR" /> @Html.DisplayNameFor(model => model.CanWriteHDDVDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteHDDVDRAM" /> @Html.DisplayNameFor(model => model.CanWriteHDDVDRAM)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteOldBDR" /> @Html.DisplayNameFor(model => model.CanWriteOldBDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteOldBDRE" /> @Html.DisplayNameFor(model => model.CanWriteOldBDRE)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWritePackedSubchannelInTAO" /> @Html.DisplayNameFor(model => model.CanWritePackedSubchannelInTAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteRWSubchannelInSAO" /> @Html.DisplayNameFor(model => model.CanWriteRWSubchannelInSAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteRWSubchannelInTAO" /> @Html.DisplayNameFor(model => model.CanWriteRWSubchannelInTAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteRaw" /> @Html.DisplayNameFor(model => model.CanWriteRaw)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteRawMultiSession" /> @Html.DisplayNameFor(model => model.CanWriteRawMultiSession)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteRawSubchannelInTAO" /> @Html.DisplayNameFor(model => model.CanWriteRawSubchannelInTAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="ChangerIsSideChangeCapable" /> @Html.DisplayNameFor(model => model.ChangerIsSideChangeCapable)
</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="ChangerSlots" class="control-label"></label>
<input asp-for="ChangerSlots" class="form-control" />
<span asp-validation-for="ChangerSlots" class="text-danger"></span>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="ChangerSupportsDiscPresent" /> @Html.DisplayNameFor(model => model.ChangerSupportsDiscPresent)
</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="CPRMVersion" class="control-label"></label>
<input asp-for="CPRMVersion" class="form-control" />
<span asp-validation-for="CPRMVersion" class="text-danger"></span>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="CSSVersion" class="control-label"></label>
<input asp-for="CSSVersion" class="form-control" />
<span asp-validation-for="CSSVersion" class="text-danger"></span>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="DBML" /> @Html.DisplayNameFor(model => model.DBML)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="DVDMultiRead" /> @Html.DisplayNameFor(model => model.DVDMultiRead)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="EmbeddedChanger" /> @Html.DisplayNameFor(model => model.EmbeddedChanger)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="ErrorRecoveryPage" /> @Html.DisplayNameFor(model => model.ErrorRecoveryPage)
</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="FirmwareDate" class="control-label"></label>
<input asp-for="FirmwareDate" class="form-control" />
<span asp-validation-for="FirmwareDate" class="text-danger"></span>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="LoadingMechanismType" class="control-label"></label>
<input asp-for="LoadingMechanismType" class="form-control" />
<span asp-validation-for="LoadingMechanismType" class="text-danger"></span>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="Locked" /> @Html.DisplayNameFor(model => model.Locked)
</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="LogicalBlockSize" class="control-label"></label>
<input asp-for="LogicalBlockSize" class="form-control" />
<span asp-validation-for="LogicalBlockSize" class="text-danger"></span>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="MultiRead" /> @Html.DisplayNameFor(model => model.MultiRead)
</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="PhysicalInterfaceStandardNumber" class="control-label"></label>
<input asp-for="PhysicalInterfaceStandardNumber" class="form-control" />
<span asp-validation-for="PhysicalInterfaceStandardNumber" class="text-danger"></span>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="PreventJumper" /> @Html.DisplayNameFor(model => model.PreventJumper)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsAACS" /> @Html.DisplayNameFor(model => model.SupportsAACS)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsBusEncryption" /> @Html.DisplayNameFor(model => model.SupportsBusEncryption)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsC2" /> @Html.DisplayNameFor(model => model.SupportsC2)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsCPRM" /> @Html.DisplayNameFor(model => model.SupportsCPRM)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsCSS" /> @Html.DisplayNameFor(model => model.SupportsCSS)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsDAP" /> @Html.DisplayNameFor(model => model.SupportsDAP)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsDeviceBusyEvent" /> @Html.DisplayNameFor(model => model.SupportsDeviceBusyEvent)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsHybridDiscs" /> @Html.DisplayNameFor(model => model.SupportsHybridDiscs)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsModePage1Ch" /> @Html.DisplayNameFor(model => model.SupportsModePage1Ch)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsOSSC" /> @Html.DisplayNameFor(model => model.SupportsOSSC)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsPWP" /> @Html.DisplayNameFor(model => model.SupportsPWP)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsSWPP" /> @Html.DisplayNameFor(model => model.SupportsSWPP)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsSecurDisc" /> @Html.DisplayNameFor(model => model.SupportsSecurDisc)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsSeparateVolume" /> @Html.DisplayNameFor(model => model.SupportsSeparateVolume)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsVCPS" /> @Html.DisplayNameFor(model => model.SupportsVCPS)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsWriteInhibitDCB" /> @Html.DisplayNameFor(model => model.SupportsWriteInhibitDCB)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsWriteProtectPAC" /> @Html.DisplayNameFor(model => model.SupportsWriteProtectPAC)
</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="VolumeLevels" class="control-label"></label>
<input asp-for="VolumeLevels" class="form-control" />
<span asp-validation-for="VolumeLevels" class="text-danger"></span>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="BinaryData" class="control-label"></label>
<input asp-for="BinaryData" class="form-control" />
<span asp-validation-for="BinaryData" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</form>
</div>
</div>
<div class="form-group">
<input class="btn btn-primary" type="submit" value="Create" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>

View File

@@ -36,634 +36,634 @@
<h4>MmcFeatures</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Edit">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<input type="hidden" asp-for="Id" />
<div class="form-group">
<div class="col-md-4">
<form asp-action="Edit">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<input type="hidden" asp-for="Id" />
<div class="form-group">
<label asp-for="AACSVersion" class="control-label"></label>
<input asp-for="AACSVersion" class="form-control" />
<span asp-validation-for="AACSVersion" class="text-danger"></span>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="AGIDs" class="control-label"></label>
<input asp-for="AGIDs" class="form-control" />
<span asp-validation-for="AGIDs" class="text-danger"></span>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="BindingNonceBlocks" class="control-label"></label>
<input asp-for="BindingNonceBlocks" class="form-control" />
<span asp-validation-for="BindingNonceBlocks" class="text-danger"></span>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="BlocksPerReadableUnit" class="control-label"></label>
<input asp-for="BlocksPerReadableUnit" class="form-control" />
<span asp-validation-for="BlocksPerReadableUnit" class="text-danger"></span>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="BufferUnderrunFreeInDVD" /> @Html.DisplayNameFor(model => model.BufferUnderrunFreeInDVD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="BufferUnderrunFreeInSAO" /> @Html.DisplayNameFor(model => model.BufferUnderrunFreeInSAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="BufferUnderrunFreeInTAO" /> @Html.DisplayNameFor(model => model.BufferUnderrunFreeInTAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanAudioScan" /> @Html.DisplayNameFor(model => model.CanAudioScan)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanEject" /> @Html.DisplayNameFor(model => model.CanEject)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanEraseSector" /> @Html.DisplayNameFor(model => model.CanEraseSector)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanExpandBDRESpareArea" /> @Html.DisplayNameFor(model => model.CanExpandBDRESpareArea)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanFormat" /> @Html.DisplayNameFor(model => model.CanFormat)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanFormatBDREWithoutSpare" /> @Html.DisplayNameFor(model => model.CanFormatBDREWithoutSpare)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanFormatCert" /> @Html.DisplayNameFor(model => model.CanFormatCert)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanFormatFRF" /> @Html.DisplayNameFor(model => model.CanFormatFRF)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanFormatQCert" /> @Html.DisplayNameFor(model => model.CanFormatQCert)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanFormatRRM" /> @Html.DisplayNameFor(model => model.CanFormatRRM)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanGenerateBindingNonce" /> @Html.DisplayNameFor(model => model.CanGenerateBindingNonce)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanLoad" /> @Html.DisplayNameFor(model => model.CanLoad)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanMuteSeparateChannels" /> @Html.DisplayNameFor(model => model.CanMuteSeparateChannels)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanOverwriteSAOTrack" /> @Html.DisplayNameFor(model => model.CanOverwriteSAOTrack)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanOverwriteTAOTrack" /> @Html.DisplayNameFor(model => model.CanOverwriteTAOTrack)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanPlayCDAudio" /> @Html.DisplayNameFor(model => model.CanPlayCDAudio)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanPseudoOverwriteBDR" /> @Html.DisplayNameFor(model => model.CanPseudoOverwriteBDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadAllDualR" /> @Html.DisplayNameFor(model => model.CanReadAllDualR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadAllDualRW" /> @Html.DisplayNameFor(model => model.CanReadAllDualRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadBD" /> @Html.DisplayNameFor(model => model.CanReadBD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadBDR" /> @Html.DisplayNameFor(model => model.CanReadBDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadBDRE1" /> @Html.DisplayNameFor(model => model.CanReadBDRE1)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadBDRE2" /> @Html.DisplayNameFor(model => model.CanReadBDRE2)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadBDROM" /> @Html.DisplayNameFor(model => model.CanReadBDROM)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadBluBCA" /> @Html.DisplayNameFor(model => model.CanReadBluBCA)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadCD" /> @Html.DisplayNameFor(model => model.CanReadCD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadCDMRW" /> @Html.DisplayNameFor(model => model.CanReadCDMRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadCPRM_MKB" /> @Html.DisplayNameFor(model => model.CanReadCPRM_MKB)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDDCD" /> @Html.DisplayNameFor(model => model.CanReadDDCD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDVD" /> @Html.DisplayNameFor(model => model.CanReadDVD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDVDPlusMRW" /> @Html.DisplayNameFor(model => model.CanReadDVDPlusMRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDVDPlusR" /> @Html.DisplayNameFor(model => model.CanReadDVDPlusR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDVDPlusRDL" /> @Html.DisplayNameFor(model => model.CanReadDVDPlusRDL)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDVDPlusRW" /> @Html.DisplayNameFor(model => model.CanReadDVDPlusRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDVDPlusRWDL" /> @Html.DisplayNameFor(model => model.CanReadDVDPlusRWDL)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadDriveAACSCertificate" /> @Html.DisplayNameFor(model => model.CanReadDriveAACSCertificate)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadHDDVD" /> @Html.DisplayNameFor(model => model.CanReadHDDVD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadHDDVDR" /> @Html.DisplayNameFor(model => model.CanReadHDDVDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadHDDVDRAM" /> @Html.DisplayNameFor(model => model.CanReadHDDVDRAM)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadLeadInCDText" /> @Html.DisplayNameFor(model => model.CanReadLeadInCDText)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadOldBDR" /> @Html.DisplayNameFor(model => model.CanReadOldBDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadOldBDRE" /> @Html.DisplayNameFor(model => model.CanReadOldBDRE)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadOldBDROM" /> @Html.DisplayNameFor(model => model.CanReadOldBDROM)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReadSpareAreaInformation" /> @Html.DisplayNameFor(model => model.CanReadSpareAreaInformation)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReportDriveSerial" /> @Html.DisplayNameFor(model => model.CanReportDriveSerial)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanReportMediaSerial" /> @Html.DisplayNameFor(model => model.CanReportMediaSerial)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanTestWriteDDCDR" /> @Html.DisplayNameFor(model => model.CanTestWriteDDCDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanTestWriteDVD" /> @Html.DisplayNameFor(model => model.CanTestWriteDVD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanTestWriteInSAO" /> @Html.DisplayNameFor(model => model.CanTestWriteInSAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanTestWriteInTAO" /> @Html.DisplayNameFor(model => model.CanTestWriteInTAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanUpgradeFirmware" /> @Html.DisplayNameFor(model => model.CanUpgradeFirmware)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteBD" /> @Html.DisplayNameFor(model => model.CanWriteBD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteBDR" /> @Html.DisplayNameFor(model => model.CanWriteBDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteBDRE1" /> @Html.DisplayNameFor(model => model.CanWriteBDRE1)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteBDRE2" /> @Html.DisplayNameFor(model => model.CanWriteBDRE2)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteBusEncryptedBlocks" /> @Html.DisplayNameFor(model => model.CanWriteBusEncryptedBlocks)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteCDMRW" /> @Html.DisplayNameFor(model => model.CanWriteCDMRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteCDRW" /> @Html.DisplayNameFor(model => model.CanWriteCDRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteCDRWCAV" /> @Html.DisplayNameFor(model => model.CanWriteCDRWCAV)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteCDSAO" /> @Html.DisplayNameFor(model => model.CanWriteCDSAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteCDTAO" /> @Html.DisplayNameFor(model => model.CanWriteCDTAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteCSSManagedDVD" /> @Html.DisplayNameFor(model => model.CanWriteCSSManagedDVD)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDDCDR" /> @Html.DisplayNameFor(model => model.CanWriteDDCDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDDCDRW" /> @Html.DisplayNameFor(model => model.CanWriteDDCDRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDPlusMRW" /> @Html.DisplayNameFor(model => model.CanWriteDVDPlusMRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDPlusR" /> @Html.DisplayNameFor(model => model.CanWriteDVDPlusR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDPlusRDL" /> @Html.DisplayNameFor(model => model.CanWriteDVDPlusRDL)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDPlusRW" /> @Html.DisplayNameFor(model => model.CanWriteDVDPlusRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDPlusRWDL" /> @Html.DisplayNameFor(model => model.CanWriteDVDPlusRWDL)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDR" /> @Html.DisplayNameFor(model => model.CanWriteDVDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDRDL" /> @Html.DisplayNameFor(model => model.CanWriteDVDRDL)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteDVDRW" /> @Html.DisplayNameFor(model => model.CanWriteDVDRW)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteHDDVDR" /> @Html.DisplayNameFor(model => model.CanWriteHDDVDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteHDDVDRAM" /> @Html.DisplayNameFor(model => model.CanWriteHDDVDRAM)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteOldBDR" /> @Html.DisplayNameFor(model => model.CanWriteOldBDR)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteOldBDRE" /> @Html.DisplayNameFor(model => model.CanWriteOldBDRE)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWritePackedSubchannelInTAO" /> @Html.DisplayNameFor(model => model.CanWritePackedSubchannelInTAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteRWSubchannelInSAO" /> @Html.DisplayNameFor(model => model.CanWriteRWSubchannelInSAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteRWSubchannelInTAO" /> @Html.DisplayNameFor(model => model.CanWriteRWSubchannelInTAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteRaw" /> @Html.DisplayNameFor(model => model.CanWriteRaw)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteRawMultiSession" /> @Html.DisplayNameFor(model => model.CanWriteRawMultiSession)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="CanWriteRawSubchannelInTAO" /> @Html.DisplayNameFor(model => model.CanWriteRawSubchannelInTAO)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="ChangerIsSideChangeCapable" /> @Html.DisplayNameFor(model => model.ChangerIsSideChangeCapable)
</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="ChangerSlots" class="control-label"></label>
<input asp-for="ChangerSlots" class="form-control" />
<span asp-validation-for="ChangerSlots" class="text-danger"></span>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="ChangerSupportsDiscPresent" /> @Html.DisplayNameFor(model => model.ChangerSupportsDiscPresent)
</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="CPRMVersion" class="control-label"></label>
<input asp-for="CPRMVersion" class="form-control" />
<span asp-validation-for="CPRMVersion" class="text-danger"></span>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="CSSVersion" class="control-label"></label>
<input asp-for="CSSVersion" class="form-control" />
<span asp-validation-for="CSSVersion" class="text-danger"></span>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="DBML" /> @Html.DisplayNameFor(model => model.DBML)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="DVDMultiRead" /> @Html.DisplayNameFor(model => model.DVDMultiRead)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="EmbeddedChanger" /> @Html.DisplayNameFor(model => model.EmbeddedChanger)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="ErrorRecoveryPage" /> @Html.DisplayNameFor(model => model.ErrorRecoveryPage)
</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="FirmwareDate" class="control-label"></label>
<input asp-for="FirmwareDate" class="form-control" />
<span asp-validation-for="FirmwareDate" class="text-danger"></span>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="LoadingMechanismType" class="control-label"></label>
<input asp-for="LoadingMechanismType" class="form-control" />
<span asp-validation-for="LoadingMechanismType" class="text-danger"></span>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="Locked" /> @Html.DisplayNameFor(model => model.Locked)
</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="LogicalBlockSize" class="control-label"></label>
<input asp-for="LogicalBlockSize" class="form-control" />
<span asp-validation-for="LogicalBlockSize" class="text-danger"></span>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="MultiRead" /> @Html.DisplayNameFor(model => model.MultiRead)
</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="PhysicalInterfaceStandardNumber" class="control-label"></label>
<input asp-for="PhysicalInterfaceStandardNumber" class="form-control" />
<span asp-validation-for="PhysicalInterfaceStandardNumber" class="text-danger"></span>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="PreventJumper" /> @Html.DisplayNameFor(model => model.PreventJumper)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsAACS" /> @Html.DisplayNameFor(model => model.SupportsAACS)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsBusEncryption" /> @Html.DisplayNameFor(model => model.SupportsBusEncryption)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsC2" /> @Html.DisplayNameFor(model => model.SupportsC2)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsCPRM" /> @Html.DisplayNameFor(model => model.SupportsCPRM)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsCSS" /> @Html.DisplayNameFor(model => model.SupportsCSS)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsDAP" /> @Html.DisplayNameFor(model => model.SupportsDAP)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsDeviceBusyEvent" /> @Html.DisplayNameFor(model => model.SupportsDeviceBusyEvent)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsHybridDiscs" /> @Html.DisplayNameFor(model => model.SupportsHybridDiscs)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsModePage1Ch" /> @Html.DisplayNameFor(model => model.SupportsModePage1Ch)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsOSSC" /> @Html.DisplayNameFor(model => model.SupportsOSSC)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsPWP" /> @Html.DisplayNameFor(model => model.SupportsPWP)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsSWPP" /> @Html.DisplayNameFor(model => model.SupportsSWPP)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsSecurDisc" /> @Html.DisplayNameFor(model => model.SupportsSecurDisc)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsSeparateVolume" /> @Html.DisplayNameFor(model => model.SupportsSeparateVolume)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsVCPS" /> @Html.DisplayNameFor(model => model.SupportsVCPS)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsWriteInhibitDCB" /> @Html.DisplayNameFor(model => model.SupportsWriteInhibitDCB)
</label>
</div>
<div class="form-group form-check">
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="SupportsWriteProtectPAC" /> @Html.DisplayNameFor(model => model.SupportsWriteProtectPAC)
</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="VolumeLevels" class="control-label"></label>
<input asp-for="VolumeLevels" class="form-control" />
<span asp-validation-for="VolumeLevels" class="text-danger"></span>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label asp-for="BinaryData" class="control-label"></label>
<input asp-for="BinaryData" class="form-control" />
<span asp-validation-for="BinaryData" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>
</div>
</div>
<div class="form-group">
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>
</div>
</div>

View File

@@ -34,385 +34,386 @@
// ****************************************************************************/
}
<table class="table">
<thead>
<tr>
<th>
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.AACSVersion)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.AGIDs)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.BindingNonceBlocks)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.BlocksPerReadableUnit)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.BufferUnderrunFreeInDVD)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.BufferUnderrunFreeInSAO)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.BufferUnderrunFreeInTAO)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanAudioScan)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanEject)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanEraseSector)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanExpandBDRESpareArea)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanFormat)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanFormatBDREWithoutSpare)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanFormatCert)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanFormatFRF)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanFormatQCert)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanFormatRRM)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanGenerateBindingNonce)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanLoad)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanMuteSeparateChannels)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanOverwriteSAOTrack)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanOverwriteTAOTrack)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanPlayCDAudio)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanPseudoOverwriteBDR)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadAllDualR)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadAllDualRW)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadBD)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadBDR)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadBDRE1)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadBDRE2)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadBDROM)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadBluBCA)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadCD)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadCDMRW)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadCPRM_MKB)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadDDCD)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadDVD)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadDVDPlusMRW)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadDVDPlusR)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadDVDPlusRDL)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadDVDPlusRW)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadDVDPlusRWDL)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadDriveAACSCertificate)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadHDDVD)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadHDDVDR)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadHDDVDRAM)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadLeadInCDText)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadOldBDR)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadOldBDRE)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadOldBDROM)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReadSpareAreaInformation)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReportDriveSerial)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanReportMediaSerial)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanTestWriteDDCDR)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanTestWriteDVD)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanTestWriteInSAO)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanTestWriteInTAO)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanUpgradeFirmware)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteBD)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteBDR)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteBDRE1)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteBDRE2)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteBusEncryptedBlocks)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteCDMRW)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteCDRW)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteCDRWCAV)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteCDSAO)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteCDTAO)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteCSSManagedDVD)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteDDCDR)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteDDCDRW)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteDVDPlusMRW)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteDVDPlusR)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteDVDPlusRDL)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteDVDPlusRW)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteDVDPlusRWDL)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteDVDR)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteDVDRDL)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteDVDRW)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteHDDVDR)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteHDDVDRAM)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteOldBDR)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteOldBDRE)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWritePackedSubchannelInTAO)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteRWSubchannelInSAO)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteRWSubchannelInTAO)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteRaw)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteRawMultiSession)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CanWriteRawSubchannelInTAO)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.ChangerIsSideChangeCapable)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.ChangerSlots)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.ChangerSupportsDiscPresent)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CPRMVersion)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.CSSVersion)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.DBML)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.DVDMultiRead)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.EmbeddedChanger)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.ErrorRecoveryPage)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.FirmwareDate)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.LoadingMechanismType)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.Locked)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.LogicalBlockSize)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.MultiRead)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.PhysicalInterfaceStandardNumber)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.PreventJumper)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsAACS)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsBusEncryption)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsC2)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsCPRM)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsCSS)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsDAP)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsDeviceBusyEvent)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsHybridDiscs)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsModePage1Ch)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsOSSC)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsPWP)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsSWPP)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsSecurDisc)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsSeparateVolume)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsVCPS)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsWriteInhibitDCB)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.SupportsWriteProtectPAC)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.VolumeLevels)
</th>
<th>
</th>
<th>
@Html.DisplayNameFor(model => model.BinaryData)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.AACSVersion)
@@ -790,8 +791,8 @@
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-secondary">Edit</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</td>
</tr>
}
</tbody>
</tbody>
</table>

View File

@@ -65,13 +65,11 @@
<span asp-validation-for="ExtendedCSD" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
<input class="btn btn-primary" type="submit" value="Create" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>

View File

@@ -38,41 +38,40 @@
<h4>MmcSd</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.CID)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.CID)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.CSD)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.CSD)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.OCR)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.OCR)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.SCR)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.SCR)
</dd>
<dt class = "col-sm-2">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.ExtendedCSD)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.ExtendedCSD)
</dd>
</dl>
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input type="submit" value="Delete" class="btn btn-danger" />
<input class="btn btn-danger" type="submit" value="Delete" />
</form>
</div>

Some files were not shown because too many files have changed in this diff Show More