Сдано

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 namespace CarRepairShopDatabaseImplement.Migrations
{ {
[DbContext(typeof(RepairsShopDatabase))] [DbContext(typeof(RepairsShopDatabase))]
[Migration("20240420131523_InitialCreate")] [Migration("20240424130916_InitialCreate")]
partial class InitialCreate partial class InitialCreate
{ {
/// <inheritdoc /> /// <inheritdoc />

View File

@ -174,7 +174,7 @@ namespace CarRepairShowShopApp.Controllers
return Redirect("~/Home/Enter"); return Redirect("~/Home/Enter");
} }
ViewBag.Shops = ApiClient.GetRequest<List<ShopViewModel>>("api/shop/getshops"); 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(); return View();
} }

View File

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

View File

@ -20,7 +20,7 @@
<div class="row"> <div class="row">
<div class="col-4">Ремонт:</div> <div class="col-4">Ремонт:</div>
<div class="col-8"> <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> </div>
<div class="row"> <div class="row">

View File

@ -51,7 +51,6 @@
</div> </div>
</form> </form>
<script>
@section Scripts @section Scripts
{ {
<script> <script>

View File

@ -47,7 +47,7 @@
<footer class="border-top footer text-muted"> <footer class="border-top footer text-muted">
<div class="container"> <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> </div>
</footer> </footer>
<script src="~/lib/jquery/dist/jquery.min.js"></script> <script src="~/lib/jquery/dist/jquery.min.js"></script>