diff --git a/DiscImageChef.Server/Areas/Admin/Controllers/ChsController.cs b/DiscImageChef.Server/Areas/Admin/Controllers/ChsController.cs index 1e5b3044..9fd3ea9f 100644 --- a/DiscImageChef.Server/Areas/Admin/Controllers/ChsController.cs +++ b/DiscImageChef.Server/Areas/Admin/Controllers/ChsController.cs @@ -18,76 +18,6 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers // GET: Admin/Chs public async Task Index() => View(await _context.Chs.ToListAsync()); - // GET: Admin/Chs/Details/5 - public async Task Details(int? id) - { - if(id == null) - { - return NotFound(); - } - - Chs chs = await _context.Chs.FirstOrDefaultAsync(m => m.Id == id); - - if(chs == null) - { - return NotFound(); - } - - return View(chs); - } - - // GET: Admin/Chs/Edit/5 - public async Task Edit(int? id) - { - if(id == null) - { - return NotFound(); - } - - 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] - public async Task Edit(int id, [Bind("Id,Cylinders,Heads,Sectors")] Chs chs) - { - if(id != chs.Id) - { - return NotFound(); - } - - if(ModelState.IsValid) - { - try - { - _context.Update(chs); - await _context.SaveChangesAsync(); - } - catch(DbUpdateConcurrencyException) - { - if(!ChsExists(chs.Id)) - { - return NotFound(); - } - - throw; - } - - return RedirectToAction(nameof(Index)); - } - - return View(chs); - } - // GET: Admin/Chs/Delete/5 public async Task Delete(int? id) { diff --git a/DiscImageChef.Server/Areas/Admin/Views/Chs/Details.cshtml b/DiscImageChef.Server/Areas/Admin/Views/Chs/Details.cshtml deleted file mode 100644 index 579fa71c..00000000 --- a/DiscImageChef.Server/Areas/Admin/Views/Chs/Details.cshtml +++ /dev/null @@ -1,63 +0,0 @@ -@model DiscImageChef.CommonTypes.Metadata.Chs - -@{ - Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml"; - ViewBag.Title = "DiscImageChef"; -} -@{ - // /*************************************************************************** - // The Disc Image Chef - // ---------------------------------------------------------------------------- - // - // Filename : Details.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 - // ****************************************************************************/ -} -
-

Chs

-
-
-
- @Html.DisplayNameFor(model => model.Cylinders) -
-
- @Html.DisplayFor(model => model.Cylinders) -
-
- @Html.DisplayNameFor(model => model.Heads) -
-
- @Html.DisplayFor(model => model.Heads) -
-
- @Html.DisplayNameFor(model => model.Sectors) -
-
- @Html.DisplayFor(model => model.Sectors) -
-
-
- \ No newline at end of file diff --git a/DiscImageChef.Server/Areas/Admin/Views/Chs/Edit.cshtml b/DiscImageChef.Server/Areas/Admin/Views/Chs/Edit.cshtml deleted file mode 100644 index cd8624b5..00000000 --- a/DiscImageChef.Server/Areas/Admin/Views/Chs/Edit.cshtml +++ /dev/null @@ -1,64 +0,0 @@ -@model DiscImageChef.CommonTypes.Metadata.Chs - -@{ - 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 - // ****************************************************************************/ -} -

Chs

-
-
-
-
-
- -
- - - -
-
- - - -
-
- - - -
-
- - Back to List -
-
-
-
\ No newline at end of file diff --git a/DiscImageChef.Server/Areas/Admin/Views/Chs/Index.cshtml b/DiscImageChef.Server/Areas/Admin/Views/Chs/Index.cshtml index 69ff059f..377cf19b 100644 --- a/DiscImageChef.Server/Areas/Admin/Views/Chs/Index.cshtml +++ b/DiscImageChef.Server/Areas/Admin/Views/Chs/Index.cshtml @@ -62,8 +62,6 @@ @Html.DisplayFor(modelItem => item.Sectors) - Details - Edit Delete