Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
lesson60
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Нурбек Созоев
lesson60
Commits
10071420
Commit
10071420
authored
May 29, 2019
by
Нурбек Созоев
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавил контроллер ProductController.cs и представление Index
parent
0fe19a8b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
6 deletions
+76
-6
ProductController.cs
Store/Controllers/ProductController.cs
+12
-0
launchSettings.json
Store/Properties/launchSettings.json
+4
-4
Startup.cs
Store/Startup.cs
+7
-2
Index.cshtml
Store/Views/Product/Index.cshtml
+5
-0
_MainLayout.cshtml
Store/Views/Shared/_MainLayout.cshtml
+48
-0
No files found.
Store/Controllers/ProductController.cs
0 → 100644
View file @
10071420
using
Microsoft.AspNetCore.Mvc
;
namespace
Store.Controllers
{
public
class
ProductController
:
Controller
{
public
IActionResult
Index
()
{
return
View
();
}
}
}
Store/Properties/launchSettings.json
View file @
10071420
{
"iisSettings"
:
{
"windowsAuthentication"
:
false
,
"anonymousAuthentication"
:
true
,
"windowsAuthentication"
:
false
,
"anonymousAuthentication"
:
true
,
"iisExpress"
:
{
"applicationUrl"
:
"http://localhost:50787"
,
"sslPort"
:
44376
...
...
@@ -18,10 +18,10 @@
"Store"
:
{
"commandName"
:
"Project"
,
"launchBrowser"
:
true
,
"applicationUrl"
:
"https://localhost:
5001;http://localhost:5
000"
,
"applicationUrl"
:
"https://localhost:
9001;http://localhost:9
000"
,
"environmentVariables"
:
{
"ASPNETCORE_ENVIRONMENT"
:
"Development"
}
}
}
}
\ No newline at end of file
}
Store/Startup.cs
View file @
10071420
...
...
@@ -52,7 +52,12 @@ namespace Store
app
.
UseStaticFiles
();
app
.
UseCookiePolicy
();
app
.
UseMvc
();
app
.
UseMvc
(
routes
=>
{
routes
.
MapRoute
(
name
:
"default"
,
template
:
"{controller=Product}/{action=Index}"
);
});
}
}
}
\ No newline at end of file
}
Store/Views/Product/Index.cshtml
0 → 100644
View file @
10071420
@{
Layout = "_MainLayout";
}
<h1>Hello</h1>
Store/Views/Shared/_MainLayout.cshtml
0 → 100644
View file @
10071420
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<title>
Store
</title>
<link
rel=
"stylesheet"
href=
"~/lib/bootstrap/dist/css/bootstrap.css"
/>
<link
rel=
"stylesheet"
href=
"~/css/site.css"
/>
</head>
<body>
<nav
class=
"navbar navbar-inverse navbar-fixed-top"
>
<div
class=
"container"
>
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
".navbar-collapse"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
</div>
<div
class=
"navbar-collapse collapse"
>
<ul
class=
"nav navbar-nav"
>
<li>
<a
href=
"/Product/Index"
>
Home
</a>
</li>
</ul>
</div>
</div>
</nav>
<div
class=
"container body-content"
>
@RenderBody()
<hr
/>
<footer>
<p>
©
2019 - Store
</p>
</footer>
</div>
<script
src=
"~/lib/jquery/dist/jquery.js"
></script>
<script
src=
"~/lib/bootstrap/dist/js/bootstrap.js"
></script>
<script
src=
"~/js/site.js"
asp-append-version=
"true"
></script>
</body>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment