diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-02-10 08:08:07 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-02-10 08:24:08 +0300 |
commit | abe2ba567a141885cd3c9bb64aa915719788719d (patch) | |
tree | 5a91862df07911a531e49d863c185dbe730766a3 | |
parent | 3f6a044a383efebc9e29234db34075c93ab6f76c (diff) |
Delete bundle controller
-rw-r--r-- | Controllers/BundleController.cs | 19 | ||||
-rw-r--r-- | Views/Bundle/Show.cshtml | 43 |
2 files changed, 0 insertions, 62 deletions
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; -<!DOCTYPE html> -<html lang="ru-RU"> - -<head> - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css"> -</head> - -<body> - <div id="carouselIndicators" class="carousel slide" data-ride="carousel"> - <ol class="carousel-indicators"> - <li data-target="#carouselIndicators" data-slide-to="0" class="active"></li> - @for (int i = 1; i < @Model?.Figures.Count(); i++) - { - <li data-target="#carouselIndicators" data-slide-to="@i"></li> - } - </ol> - <div class="carousel-inner"> - <div class="carousel-item active"> - <img class="d-block w-100" src="@Model?.Figures[0].FilePath" alt="..."> - </div> - @for (int i = 1; i < @Model?.Figures.Count(); i++) - { - <div class="carousel-item"> - <img class="d-block w-100" src="@Model?.Figures[i].FilePath" alt="..."> - </div> - } - </div> - <a class="carousel-control-prev" href="#carouselIndicators" role="button" data-slide="prev"> - <span class="carousel-control-prev-icon" aria-hidden="true"></span> - <span class="sr-only">Previous</span> - </a> - <a class="carousel-control-next" href="#carouselIndicators" role="button" data-slide="next"> - <span class="carousel-control-next-icon" aria-hidden="true"></span> - <span class="sr-only">Next</span> - </a> - </div> - <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script> - <script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js"></script> - <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js"></script> -</body> - -</html>
\ No newline at end of file |