diff --git a/DiscImageChef.Server/Areas/Admin/Controllers/AtasController.cs b/DiscImageChef.Server/Areas/Admin/Controllers/AtasController.cs index 8fab1a3c..582c67bc 100644 --- a/DiscImageChef.Server/Areas/Admin/Controllers/AtasController.cs +++ b/DiscImageChef.Server/Areas/Admin/Controllers/AtasController.cs @@ -67,57 +67,6 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers return View(ata); } - // GET: Admin/Atas/Edit/5 - public async Task Edit(int? id) - { - if (id == null) - { - return NotFound(); - } - - var ata = await _context.Ata.FindAsync(id); - if (ata == null) - { - return NotFound(); - } - return View(ata); - } - - // POST: Admin/Atas/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,Identify")] DiscImageChef.CommonTypes.Metadata.Ata ata) - { - if (id != ata.Id) - { - return NotFound(); - } - - if (ModelState.IsValid) - { - try - { - _context.Update(ata); - await _context.SaveChangesAsync(); - } - catch (DbUpdateConcurrencyException) - { - if (!AtaExists(ata.Id)) - { - return NotFound(); - } - else - { - throw; - } - } - return RedirectToAction(nameof(Index)); - } - return View(ata); - } - // GET: Admin/Atas/Delete/5 public async Task Delete(int? id) { diff --git a/DiscImageChef.Server/Areas/Admin/Views/Atas/Edit.cshtml b/DiscImageChef.Server/Areas/Admin/Views/Atas/Edit.cshtml deleted file mode 100644 index dc3f2f90..00000000 --- a/DiscImageChef.Server/Areas/Admin/Views/Atas/Edit.cshtml +++ /dev/null @@ -1,54 +0,0 @@ -@model DiscImageChef.CommonTypes.Metadata.Ata - -@{ - 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 - // ****************************************************************************/ -} -

Ata

-
-
-
-
-
- -
- - - -
-
- - Back to List -
-
-
-
diff --git a/DiscImageChef.Server/Areas/Admin/Views/Atas/Index.cshtml b/DiscImageChef.Server/Areas/Admin/Views/Atas/Index.cshtml index 9065a1f5..85355ba8 100644 --- a/DiscImageChef.Server/Areas/Admin/Views/Atas/Index.cshtml +++ b/DiscImageChef.Server/Areas/Admin/Views/Atas/Index.cshtml @@ -52,9 +52,8 @@ ATA IDENTIFY DEVICE responses Details - Edit Delete - + }