From f8aab56606701ca27901caf721dd3845016ddb44 Mon Sep 17 00:00:00 2001 From: Marco Audiffredi Date: Thu, 14 Sep 2023 17:47:29 +0200 Subject: [PATCH] delete --- Controllers/ChiusureController.cs | 26 +++++- Views/Chiusure/Delete.cshtml | 140 ++++++++++++++++++++++++++++++ 2 files changed, 164 insertions(+), 2 deletions(-) create mode 100644 Views/Chiusure/Delete.cshtml diff --git a/Controllers/ChiusureController.cs b/Controllers/ChiusureController.cs index 7f8a569..4196850 100644 --- a/Controllers/ChiusureController.cs +++ b/Controllers/ChiusureController.cs @@ -56,7 +56,7 @@ namespace VirtualTask.Controllers } - public ActionResult Details(string id) + public IActionResult Details(string id) { Chiusure ele=new Chiusure(); @@ -71,7 +71,7 @@ namespace VirtualTask.Controllers return View(ele); } - public ActionResult Edit(string id) + public IActionResult Edit(string id) { Chiusure ele = new Chiusure(); @@ -95,5 +95,27 @@ namespace VirtualTask.Controllers return View(ele); } + + [HttpGet] + public IActionResult Delete(string id) + { + Chiusure ele = new Chiusure(); + if (id == null) + { + + } + + return View(ele); + } + public IActionResult DeleteConfirmed(string id) + { + Chiusure ele = new Chiusure(); + if (id == null) + { + + } + + return RedirectToAction("Index"); + } } } diff --git a/Views/Chiusure/Delete.cshtml b/Views/Chiusure/Delete.cshtml new file mode 100644 index 0000000..98e3cf9 --- /dev/null +++ b/Views/Chiusure/Delete.cshtml @@ -0,0 +1,140 @@ +@model VirtualTask.Models.Chiusure + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

Chiusure

+
+
+
+ @Html.DisplayNameFor(model => model.cccodazi) +
+
+ @Html.DisplayFor(model => model.cccodazi) +
+
+ @Html.DisplayNameFor(model => model.cccodice) +
+
+ @Html.DisplayFor(model => model.cccodice) +
+
+ @Html.DisplayNameFor(model => model.ccdescr) +
+
+ @Html.DisplayFor(model => model.ccdescr) +
+
+ @Html.DisplayNameFor(model => model.ccdessup) +
+
+ @Html.DisplayFor(model => model.ccdessup) +
+
+ @Html.DisplayNameFor(model => model.ccflfatt) +
+
+ @Html.DisplayFor(model => model.ccflfatt) +
+
+ @Html.DisplayNameFor(model => model.ccflrep) +
+
+ @Html.DisplayFor(model => model.ccflrep) +
+
+ @Html.DisplayNameFor(model => model.cctipcod) +
+
+ @Html.DisplayFor(model => model.cctipcod) +
+
+ @Html.DisplayNameFor(model => model.ccgruppo) +
+
+ @Html.DisplayFor(model => model.ccgruppo) +
+
+ @Html.DisplayNameFor(model => model.ccimpint) +
+
+ @Html.DisplayFor(model => model.ccimpint) +
+
+ @Html.DisplayNameFor(model => model.ccimpman) +
+
+ @Html.DisplayFor(model => model.ccimpman) +
+
+ @Html.DisplayNameFor(model => model.ccserint) +
+
+ @Html.DisplayFor(model => model.ccserint) +
+
+ @Html.DisplayNameFor(model => model.ccserman) +
+
+ @Html.DisplayFor(model => model.ccserman) +
+
+ @Html.DisplayNameFor(model => model.ccnumore) +
+
+ @Html.DisplayFor(model => model.ccnumore) +
+
+ @Html.DisplayNameFor(model => model.ccperman) +
+
+ @Html.DisplayFor(model => model.ccperman) +
+
+ @Html.DisplayNameFor(model => model.corecom) +
+
+ @Html.DisplayFor(model => model.corecom) +
+
+ @Html.DisplayNameFor(model => model.codtobso) +
+
+ @Html.DisplayFor(model => model.codtobso) +
+
+ @Html.DisplayNameFor(model => model.ccrapabi) +
+
+ @Html.DisplayFor(model => model.ccrapabi) +
+
+ @Html.DisplayNameFor(model => model.ccrapobb) +
+
+ @Html.DisplayFor(model => model.ccrapobb) +
+
+ @Html.DisplayNameFor(model => model.ccriapre) +
+
+ @Html.DisplayFor(model => model.ccriapre) +
+
+ @Html.DisplayNameFor(model => model.ccchiint) +
+
+ @Html.DisplayFor(model => model.ccchiint) +
+
+ +
+ | + Back to List +
+