From abe2ba567a141885cd3c9bb64aa915719788719d Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Fri, 10 Feb 2023 08:08:07 +0300 Subject: [PATCH] Delete bundle controller --- Controllers/BundleController.cs | 19 --------------- Views/Bundle/Show.cshtml | 43 --------------------------------- 2 files changed, 62 deletions(-) delete mode 100644 Controllers/BundleController.cs delete mode 100644 Views/Bundle/Show.cshtml diff --git a/Controllers/BundleController.cs b/Controllers/BundleController.cs deleted file mode 100644 index d8d2512..0000000 --- a/Controllers/BundleController.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.EntityFrameworkCore; -using MyDarling.Models; - -namespace MyDarling.Controllers -{ - public class BundleController : Controller - { - private DataContext context; - public BundleController(DataContext context) - { - this.context = context; - } - public IActionResult Show(int id) - { - return View(context.UnderwearBundles.Include(x => x.Figures).Where(x => x.Id == id).FirstOrDefault()); - } - } -} \ No newline at end of file diff --git a/Views/Bundle/Show.cshtml b/Views/Bundle/Show.cshtml deleted file mode 100644 index e3a49f1..0000000 --- a/Views/Bundle/Show.cshtml +++ /dev/null @@ -1,43 +0,0 @@ -@model MyDarling.Models.UnderwearBundle; - - - - - - - - - - - - - - - \ No newline at end of file