diff --git a/DiscImageChef.Server/Areas/Admin/Controllers/SscsController.cs b/DiscImageChef.Server/Areas/Admin/Controllers/SscsController.cs index 247ac6bb..38685d94 100644 --- a/DiscImageChef.Server/Areas/Admin/Controllers/SscsController.cs +++ b/DiscImageChef.Server/Areas/Admin/Controllers/SscsController.cs @@ -36,59 +36,6 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers return View(ssc); } - // GET: Admin/Sscs/Edit/5 - public async Task Edit(int? id) - { - if(id == null) - { - return NotFound(); - } - - 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 Edit(int id, [Bind("Id,BlockSizeGranularity,MaxBlockLength,MinBlockLength")] - Ssc ssc) - { - if(id != ssc.Id) - { - return NotFound(); - } - - if(ModelState.IsValid) - { - try - { - _context.Update(ssc); - await _context.SaveChangesAsync(); - } - catch(DbUpdateConcurrencyException) - { - if(!SscExists(ssc.Id)) - { - return NotFound(); - } - - throw; - } - - return RedirectToAction(nameof(Index)); - } - - return View(ssc); - } - // GET: Admin/Sscs/Delete/5 public async Task Delete(int? id) { @@ -117,7 +64,5 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers return RedirectToAction(nameof(Index)); } - - bool SscExists(int id) => _context.Ssc.Any(e => e.Id == id); } } \ No newline at end of file diff --git a/DiscImageChef.Server/Areas/Admin/Views/Home/Index.cshtml b/DiscImageChef.Server/Areas/Admin/Views/Home/Index.cshtml index 6896a002..d6175929 100644 --- a/DiscImageChef.Server/Areas/Admin/Views/Home/Index.cshtml +++ b/DiscImageChef.Server/Areas/Admin/Views/Home/Index.cshtml @@ -51,5 +51,6 @@ Partitioning schemes detected PCMCIA card registers SCSI MODE SENSE responses -SCSI MODE SENSE pages +SCSI MODE SENSE pages +SCSI INQUIRY responses DiscImageChef versions used \ No newline at end of file diff --git a/DiscImageChef.Server/Areas/Admin/Views/Sscs/Details.cshtml b/DiscImageChef.Server/Areas/Admin/Views/Sscs/Details.cshtml index 65a0c432..bc7d1c2d 100644 --- a/DiscImageChef.Server/Areas/Admin/Views/Sscs/Details.cshtml +++ b/DiscImageChef.Server/Areas/Admin/Views/Sscs/Details.cshtml @@ -58,6 +58,5 @@
- Edit Back to List
\ No newline at end of file diff --git a/DiscImageChef.Server/Areas/Admin/Views/Sscs/Edit.cshtml b/DiscImageChef.Server/Areas/Admin/Views/Sscs/Edit.cshtml deleted file mode 100644 index 6e423777..00000000 --- a/DiscImageChef.Server/Areas/Admin/Views/Sscs/Edit.cshtml +++ /dev/null @@ -1,64 +0,0 @@ -@model DiscImageChef.CommonTypes.Metadata.Ssc - -@{ - Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml"; - ViewBag.Title = "DiscImageChef"; -} -@{ - // /*************************************************************************** - // The Disc Image Chef - // ---------------------------------------------------------------------------- - // - // Filename : Edit.cshtml - // Author(s) : Natalia Portillo - // - // Component : DiscImageChef Server. - // - // --[ 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 - // published by the Free Software Foundation; either version 2.1 of the - // License, or (at your option) any later version. - // - // This library is distributed in the hope that it will be useful, but - // WITHOUT ANY WARRANTY; without even the implied warranty of - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - // Lesser General Public License for more details. - // - // You should have received a copy of the GNU Lesser General Public - // License along with this library; if not, see . - // - // ---------------------------------------------------------------------------- - // Copyright © 2011-2019 Natalia Portillo - // ****************************************************************************/ -} -

Ssc

-
-
-
-
-
- -
- - - -
-
- - - -
-
- - - -
-
- - Back to List -
-
-
-
\ No newline at end of file diff --git a/DiscImageChef.Server/Areas/Admin/Views/Sscs/Index.cshtml b/DiscImageChef.Server/Areas/Admin/Views/Sscs/Index.cshtml index d7f8faea..207fb6a3 100644 --- a/DiscImageChef.Server/Areas/Admin/Views/Sscs/Index.cshtml +++ b/DiscImageChef.Server/Areas/Admin/Views/Sscs/Index.cshtml @@ -63,7 +63,6 @@ Details - Edit Delete