+@{
+ ViewBag.Title = "Все телевизоры";
+}
+Добавить модель телевизора
+
+ Модель Возраст Цена
+ @foreach (var item in Model)
+ {
+
+ @item.Name
+ @item.Age
+ @item.Price
+
+ Изменить |
+ Удалить
+
+
+ }
+
+
diff --git a/WebApplication/Views/Shared/Error.cshtml b/WebApplication/Views/Shared/Error.cshtml
new file mode 100644
index 0000000..a1e0478
--- /dev/null
+++ b/WebApplication/Views/Shared/Error.cshtml
@@ -0,0 +1,25 @@
+@model ErrorViewModel
+@{
+ ViewData["Title"] = "Error";
+}
+
+Error.
+An error occurred while processing your request.
+
+@if (Model.ShowRequestId)
+{
+
+ Request ID: @Model.RequestId
+
+}
+
+Development Mode
+
+ Swapping to Development environment will display more detailed information about the error that occurred.
+
+
+ The Development environment shouldn't be enabled for deployed applications.
+ It can result in displaying sensitive information from exceptions to end users.
+ For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development
+ and restarting the app.
+
diff --git a/WebApplication/Views/Shared/_CookieConsentPartial.cshtml b/WebApplication/Views/Shared/_CookieConsentPartial.cshtml
new file mode 100644
index 0000000..a535ea4
--- /dev/null
+++ b/WebApplication/Views/Shared/_CookieConsentPartial.cshtml
@@ -0,0 +1,25 @@
+@using Microsoft.AspNetCore.Http.Features
+
+@{
+ var consentFeature = Context.Features.Get();
+ var showBanner = !consentFeature?.CanTrack ?? false;
+ var cookieString = consentFeature?.CreateConsentCookie();
+}
+
+@if (showBanner)
+{
+
+ Use this space to summarize your privacy and cookie use policy.
Learn More .
+
+ Accept
+
+
+
+}
diff --git a/WebApplication/Views/Shared/_Layout.cshtml b/WebApplication/Views/Shared/_Layout.cshtml
new file mode 100644
index 0000000..fe7c13d
--- /dev/null
+++ b/WebApplication/Views/Shared/_Layout.cshtml
@@ -0,0 +1,66 @@
+
+
+
+
+
+ @ViewData["Title"]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @RenderSection("Scripts", required: false)
+
+
diff --git a/WebApplication/Views/Shared/_ValidationScriptsPartial.cshtml b/WebApplication/Views/Shared/_ValidationScriptsPartial.cshtml
new file mode 100644
index 0000000..3c0e077
--- /dev/null
+++ b/WebApplication/Views/Shared/_ValidationScriptsPartial.cshtml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
diff --git a/WebApplication/Views/_ViewImports.cshtml b/WebApplication/Views/_ViewImports.cshtml
new file mode 100644
index 0000000..faa560a
--- /dev/null
+++ b/WebApplication/Views/_ViewImports.cshtml
@@ -0,0 +1,3 @@
+@using WebApplication
+@using WebApplication.Models
+@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
diff --git a/WebApplication/Views/_ViewStart.cshtml b/WebApplication/Views/_ViewStart.cshtml
new file mode 100644
index 0000000..a5f1004
--- /dev/null
+++ b/WebApplication/Views/_ViewStart.cshtml
@@ -0,0 +1,3 @@
+@{
+ Layout = "_Layout";
+}
diff --git a/WebApplication/WebApplication.csproj b/WebApplication/WebApplication.csproj
new file mode 100644
index 0000000..603bc15
--- /dev/null
+++ b/WebApplication/WebApplication.csproj
@@ -0,0 +1,21 @@
+
+
+
+ netcoreapp2.2
+ InProcess
+
+
+
+
+
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers
+
+
+
+
+
diff --git a/WebApplication/WebApplication.sln b/WebApplication/WebApplication.sln
new file mode 100644
index 0000000..944dfe8
--- /dev/null
+++ b/WebApplication/WebApplication.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.28307.645
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApplication", "WebApplication.csproj", "{5B518736-1FE7-4EC6-8343-7B7C6366B410}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {5B518736-1FE7-4EC6-8343-7B7C6366B410}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5B518736-1FE7-4EC6-8343-7B7C6366B410}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5B518736-1FE7-4EC6-8343-7B7C6366B410}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5B518736-1FE7-4EC6-8343-7B7C6366B410}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {16717501-42FB-4994-BDCA-CFD15F822745}
+ EndGlobalSection
+EndGlobal
diff --git a/WebApplication/appsettings.Development.json b/WebApplication/appsettings.Development.json
new file mode 100644
index 0000000..e203e94
--- /dev/null
+++ b/WebApplication/appsettings.Development.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Debug",
+ "System": "Information",
+ "Microsoft": "Information"
+ }
+ }
+}
diff --git a/WebApplication/appsettings.json b/WebApplication/appsettings.json
new file mode 100644
index 0000000..8c54394
--- /dev/null
+++ b/WebApplication/appsettings.json
@@ -0,0 +1,11 @@
+{
+ "ConnectionStrings": {
+ "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=televisionsdb;Trusted_Connection=True;"
+ },
+ "Logging": {
+ "LogLevel": {
+ "Default": "Warning"
+ }
+ },
+ "AllowedHosts": "*"
+}
diff --git a/WebApplication/wwwroot/css/site.css b/WebApplication/wwwroot/css/site.css
new file mode 100644
index 0000000..69379ab
--- /dev/null
+++ b/WebApplication/wwwroot/css/site.css
@@ -0,0 +1,79 @@
+/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
+for details on configuring this project to bundle and minify static web assets. */
+
+a.navbar-brand {
+ white-space: normal;
+ text-align: center;
+ word-break: break-all;
+}
+
+/* Sticky footer styles
+-------------------------------------------------- */
+html {
+ font-size: 14px;
+}
+@media (min-width: 768px) {
+ html {
+ font-size: 16px;
+ }
+}
+
+.border-top {
+ border-top: 1px solid #e5e5e5;
+}
+.border-bottom {
+ border-bottom: 1px solid #e5e5e5;
+}
+
+.box-shadow {
+ box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
+}
+
+button.accept-policy {
+ font-size: 1rem;
+ line-height: inherit;
+}
+
+/* Sticky footer styles
+-------------------------------------------------- */
+html {
+ position: relative;
+ min-height: 100%;
+}
+
+body {
+ /* Margin bottom by footer height */
+ margin-bottom: 60px;
+}
+
+.button {
+ font-weight: 700;
+ text-decoration: none;
+ color: #000;
+ text-transform: uppercase;
+ letter-spacing: 1.6px;
+ display: inline-block;
+ border-width: 2px;
+ border-color: #000;
+ border-style: solid;
+ border-radius: 50px;
+ padding-top: 8px;
+ padding-bottom: 8px;
+ padding-left: 23px;
+ padding-right: 23px;
+ margin-bottom: 15px;
+}
+
+.button:hover{
+ color: #fff;
+ background-color: #000;
+}
+
+a {
+ transition: 0.2s ease-out;
+ margin-top: 1%;
+}
+
+a:hover {
+ text-decoration: none;
+}
\ No newline at end of file
diff --git a/WebApplication/wwwroot/favicon.ico b/WebApplication/wwwroot/favicon.ico
new file mode 100644
index 0000000..a3a7999
Binary files /dev/null and b/WebApplication/wwwroot/favicon.ico differ
diff --git a/WebApplication/wwwroot/js/site.js b/WebApplication/wwwroot/js/site.js
new file mode 100644
index 0000000..ac49c18
--- /dev/null
+++ b/WebApplication/wwwroot/js/site.js
@@ -0,0 +1,4 @@
+// Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
+// for details on configuring this project to bundle and minify static web assets.
+
+// Write your JavaScript code.