Сдано

This commit is contained in:
Yunusov_Niyaz 2024-04-24 21:36:26 +04:00
parent af47f03177
commit 5058d91b54
7 changed files with 27 additions and 29 deletions

View File

@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace CarRepairShopDatabaseImplement.Migrations
{
[DbContext(typeof(RepairsShopDatabase))]
[Migration("20240420131523_InitialCreate")]
[Migration("20240424130916_InitialCreate")]
partial class InitialCreate
{
/// <inheritdoc />

View File

@ -174,7 +174,7 @@ namespace CarRepairShowShopApp.Controllers
return Redirect("~/Home/Enter");
}
ViewBag.Shops = ApiClient.GetRequest<List<ShopViewModel>>("api/shop/getshops");
ViewBag.ListIceCream = ApiClient.GetRequest<List<RepairViewModel>>("api/main/GetRepairList");
ViewBag.ListRepair = ApiClient.GetRequest<List<RepairViewModel>>("api/main/GetRepairList");
return View();
}

View File

@ -33,8 +33,7 @@
<div class="row">
<div class="col-8"></div>
<div class="col-4">
<input type="submit" value="Создать" class="btn
btn-primary" />
<input type="submit" value="Создать" class="btn btn-primary" />
</div>
</div>
</form>

View File

@ -20,7 +20,7 @@
<div class="row">
<div class="col-4">Ремонт:</div>
<div class="col-8">
<select id="icecream" name="icecream" class="form-control" asp-items="@(new SelectList(@ViewBag.ListIceCream, "Id", "RepairName"))"></select>
<select id="repair" name="repair" class="form-control" asp-items="@(new SelectList(@ViewBag.ListRepair, "Id", "RepairName"))"></select>
</div>
</div>
<div class="row">

View File

@ -51,9 +51,8 @@
</div>
</form>
<script>
@section Scripts
{
@section Scripts
{
<script>
function check() {
var shop = $('#shop').val();

View File

@ -47,7 +47,7 @@
<footer class="border-top footer text-muted">
<div class="container">
&copy; 2024 - CarRepairShowShopApp - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
&copy; 2024 - Магазин ремонтов - <a asp-area="" asp-controller="Home"></a>
</div>
</footer>
<script src="~/lib/jquery/dist/jquery.min.js"></script>