Сдано
This commit is contained in:
parent
af47f03177
commit
5058d91b54
@ -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 />
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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>
|
@ -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">
|
||||
|
@ -51,9 +51,8 @@
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
@section Scripts
|
||||
{
|
||||
@section Scripts
|
||||
{
|
||||
<script>
|
||||
function check() {
|
||||
var shop = $('#shop').val();
|
||||
|
@ -47,7 +47,7 @@
|
||||
|
||||
<footer class="border-top footer text-muted">
|
||||
<div class="container">
|
||||
© 2024 - CarRepairShowShopApp - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
© 2024 - Магазин ремонтов - <a asp-area="" asp-controller="Home"></a>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
|
Loading…
Reference in New Issue
Block a user