Commit 9db97962 authored by TTrueBenji's avatar TTrueBenji

refactor: переименовал контроллер.

parent 6d5d7206
...@@ -5,11 +5,11 @@ using PhoneStore.ViewModels; ...@@ -5,11 +5,11 @@ using PhoneStore.ViewModels;
namespace PhoneStore.Controllers namespace PhoneStore.Controllers
{ {
public class BasketController : Controller public class BasketsController : Controller
{ {
private readonly IBasketService _basketService; private readonly IBasketService _basketService;
public BasketController(IBasketService basketService) public BasketsController(IBasketService basketService)
{ {
_basketService = basketService; _basketService = basketService;
} }
......
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
<h2>@Model.Status : @Model.Message</h2> <h2>@Model.Status : @Model.Message</h2>
<a asp-action="Index" asp-controller="Basket">Перейти в корзину</a> <a asp-action="Index" asp-controller="Baskets">Перейти в корзину</a>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<td>@basket.Phone.Name</td> <td>@basket.Phone.Name</td>
<td>@basket.Phone.Company</td> <td>@basket.Phone.Company</td>
<td>@basket.Phone.Price</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="Baskets" class="btn btn-outline-danger">Удалить из корзины</a></td>
</tr> </tr>
} }
</table> </table>
\ No newline at end of file
...@@ -33,7 +33,7 @@ else ...@@ -33,7 +33,7 @@ else
<td> <td>
<a asp-route-id="@phone.Id" <a asp-route-id="@phone.Id"
asp-action="Add" asp-action="Add"
asp-controller="Basket" asp-controller="Baskets"
class="btn btn-outline-warning"> class="btn btn-outline-warning">
В корзину В корзину
</a> </a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment