diff --git a/DiscImageChef.Server/Areas/Admin/Controllers/MmcSdsController.cs b/DiscImageChef.Server/Areas/Admin/Controllers/MmcSdsController.cs index 76023578..b5d49086 100644 --- a/DiscImageChef.Server/Areas/Admin/Controllers/MmcSdsController.cs +++ b/DiscImageChef.Server/Areas/Admin/Controllers/MmcSdsController.cs @@ -36,59 +36,6 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers return View(mmcSd); } - // GET: Admin/MmcSds/Edit/5 - public async Task Edit(int? id) - { - if(id == null) - { - return NotFound(); - } - - 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 Edit(int id, [Bind("Id,CID,CSD,OCR,SCR,ExtendedCSD")] - MmcSd mmcSd) - { - if(id != mmcSd.Id) - { - return NotFound(); - } - - if(ModelState.IsValid) - { - try - { - _context.Update(mmcSd); - await _context.SaveChangesAsync(); - } - catch(DbUpdateConcurrencyException) - { - if(!MmcSdExists(mmcSd.Id)) - { - return NotFound(); - } - - throw; - } - - return RedirectToAction(nameof(Index)); - } - - return View(mmcSd); - } - // GET: Admin/MmcSds/Delete/5 public async Task Delete(int? id) { @@ -117,7 +64,5 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers return RedirectToAction(nameof(Index)); } - - bool MmcSdExists(int id) => _context.MmcSd.Any(e => e.Id == id); } } \ No newline at end of file diff --git a/DiscImageChef.Server/Areas/Admin/Views/MmcSds/Details.cshtml b/DiscImageChef.Server/Areas/Admin/Views/MmcSds/Details.cshtml index deea9385..12c6ab63 100644 --- a/DiscImageChef.Server/Areas/Admin/Views/MmcSds/Details.cshtml +++ b/DiscImageChef.Server/Areas/Admin/Views/MmcSds/Details.cshtml @@ -119,6 +119,5 @@
- Edit Back to List
\ No newline at end of file diff --git a/DiscImageChef.Server/Areas/Admin/Views/MmcSds/Edit.cshtml b/DiscImageChef.Server/Areas/Admin/Views/MmcSds/Edit.cshtml deleted file mode 100644 index 575732ca..00000000 --- a/DiscImageChef.Server/Areas/Admin/Views/MmcSds/Edit.cshtml +++ /dev/null @@ -1,74 +0,0 @@ -@model DiscImageChef.CommonTypes.Metadata.MmcSd - -@{ - 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 - // ****************************************************************************/ -} -

MmcSd

-
-
-
-
-
- -
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - Back to List -
-
-
-
\ No newline at end of file diff --git a/DiscImageChef.Server/Areas/Admin/Views/MmcSds/Index.cshtml b/DiscImageChef.Server/Areas/Admin/Views/MmcSds/Index.cshtml index d0a76760..983f4b33 100644 --- a/DiscImageChef.Server/Areas/Admin/Views/MmcSds/Index.cshtml +++ b/DiscImageChef.Server/Areas/Admin/Views/MmcSds/Index.cshtml @@ -75,7 +75,6 @@ Details - Edit Delete