Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
Lesson49
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
Пасько Виталий
Lesson49
Commits
9db97962
Commit
9db97962
authored
Jun 22, 2022
by
TTrueBenji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: переименовал контроллер.
parent
6d5d7206
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
BasketsController.cs
PhoneStore/Controllers/BasketsController.cs
+2
-2
Add.cshtml
PhoneStore/Views/Baskets/Add.cshtml
+1
-1
Index.cshtml
PhoneStore/Views/Baskets/Index.cshtml
+1
-1
Index.cshtml
PhoneStore/Views/Phones/Index.cshtml
+1
-1
No files found.
PhoneStore/Controllers/BasketController.cs
→
PhoneStore/Controllers/Basket
s
Controller.cs
View file @
9db97962
...
...
@@ -5,11 +5,11 @@ using PhoneStore.ViewModels;
namespace
PhoneStore.Controllers
{
public
class
BasketController
:
Controller
public
class
Basket
s
Controller
:
Controller
{
private
readonly
IBasketService
_basketService
;
public
BasketController
(
IBasketService
basketService
)
public
Basket
s
Controller
(
IBasketService
basketService
)
{
_basketService
=
basketService
;
}
...
...
PhoneStore/Views/Basket/Add.cshtml
→
PhoneStore/Views/Basket
s
/Add.cshtml
View file @
9db97962
...
...
@@ -7,4 +7,4 @@
<h2>@Model.Status : @Model.Message</h2>
<a asp-action="Index" asp-controller="Basket">Перейти в корзину</a>
<a asp-action="Index" asp-controller="Basket
s
">Перейти в корзину</a>
PhoneStore/Views/Basket/Index.cshtml
→
PhoneStore/Views/Basket
s
/Index.cshtml
View file @
9db97962
...
...
@@ -21,7 +21,7 @@
<td>@basket.Phone.Name</td>
<td>@basket.Phone.Company</td>
<td>@basket.Phone.Price</td>
<td><a asp-route-id="@basket.PhoneId" asp-action="Remove" asp-controller="Basket" class="btn btn-outline-danger">Удалить из корзины</a></td>
<td><a asp-route-id="@basket.PhoneId" asp-action="Remove" asp-controller="Basket
s
" class="btn btn-outline-danger">Удалить из корзины</a></td>
</tr>
}
</table>
\ No newline at end of file
PhoneStore/Views/Phones/Index.cshtml
View file @
9db97962
...
...
@@ -33,7 +33,7 @@ else
<td>
<a asp-route-id="@phone.Id"
asp-action="Add"
asp-controller="Basket"
asp-controller="Basket
s
"
class="btn btn-outline-warning">
В корзину
</a>
...
...
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