Prvi commit
This commit is contained in:
93
EveryThing/Pages/FleetFueling/Create.cshtml
Normal file
93
EveryThing/Pages/FleetFueling/Create.cshtml
Normal file
@@ -0,0 +1,93 @@
|
||||
@page
|
||||
@model EveryThing.Pages.FleetFueling.CreateModel
|
||||
|
||||
<h4>VehicleFueling</h4>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<form method="post">
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.IdVehicleFk" class="control-label"></label>
|
||||
<select asp-for="VehicleFueling.IdVehicleFk" class ="form-control" asp-items="ViewBag.IdVehicleFk"></select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.IdEmployeeFk" class="control-label"></label>
|
||||
<select asp-for="VehicleFueling.IdEmployeeFk" class ="form-control" asp-items="ViewBag.IdEmployeeFk"></select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.DateOfFueling" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.DateOfFueling" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.DateOfFueling" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.IdVehicleFuelingCardFk" class="control-label"></label>
|
||||
<select asp-for="VehicleFueling.IdVehicleFuelingCardFk" class ="form-control" asp-items="ViewBag.IdVehicleFuelingCardFk"></select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.FuelingCardInvoiceDate" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.FuelingCardInvoiceDate" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.FuelingCardInvoiceDate" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.FuelingCardInvoiceNumber" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.FuelingCardInvoiceNumber" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.FuelingCardInvoiceNumber" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.IdVehicleFuelTypeFk" class="control-label"></label>
|
||||
<select asp-for="VehicleFueling.IdVehicleFuelTypeFk" class ="form-control" asp-items="ViewBag.IdVehicleFuelTypeFk"></select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.Quantity" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.Quantity" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.Quantity" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.Mileage" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.Mileage" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.Mileage" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" asp-for="VehicleFueling.FullTank" /> @Html.DisplayNameFor(model => model.VehicleFueling.FullTank)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.Amount" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.Amount" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.Amount" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.IdCountryFk" class="control-label"></label>
|
||||
<select asp-for="VehicleFueling.IdCountryFk" class ="form-control" asp-items="ViewBag.IdCountryFk"></select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.City" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.City" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.City" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.Reference" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.Reference" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.Reference" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.Note" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.Note" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.Note" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<a asp-page="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
||||
}
|
||||
50
EveryThing/Pages/FleetFueling/Create.cshtml.cs
Normal file
50
EveryThing/Pages/FleetFueling/Create.cshtml.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
using EveryThing.Data;
|
||||
using EveryThing.Models.Vehicle;
|
||||
|
||||
namespace EveryThing.Pages.FleetFueling
|
||||
{
|
||||
public class CreateModel : PageModel
|
||||
{
|
||||
private readonly ApplicationDbContext _context;
|
||||
|
||||
public CreateModel(ApplicationDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
|
||||
public IActionResult OnGet()
|
||||
{
|
||||
ViewData["IdCountryFk"] = new SelectList(_context.CodeTableCountries, "IdCountry", "Title");
|
||||
ViewData["IdEmployeeFk"] = new SelectList(_context.CodeTableEmployees, "IdEmployee", "BankAccount");
|
||||
ViewData["IdVehicleFk"] = new SelectList(_context.Vehicles, "IdVehicle", "RegistrationNumber");
|
||||
ViewData["IdVehicleFuelTypeFk"] = new SelectList(_context.VehicleFuelTypes, "IdVehicleFuelType", "Title");
|
||||
ViewData["IdVehicleFuelingCardFk"] = new SelectList(_context.VehicleFuelingCards, "IdFuelingCard", "CardNumber");
|
||||
return Page();
|
||||
}
|
||||
|
||||
[BindProperty]
|
||||
public Models.Vehicle.VehicleFueling VehicleFueling { get; set; }
|
||||
|
||||
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
|
||||
// more details see https://aka.ms/RazorPagesCRUD.
|
||||
public async Task<IActionResult> OnPostAsync()
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
return Page();
|
||||
}
|
||||
|
||||
_context.VehicleFuelings.Add(VehicleFueling);
|
||||
await _context.SaveChangesAsync();
|
||||
|
||||
return RedirectToPage("./Index");
|
||||
}
|
||||
}
|
||||
}
|
||||
106
EveryThing/Pages/FleetFueling/Delete.cshtml
Normal file
106
EveryThing/Pages/FleetFueling/Delete.cshtml
Normal file
@@ -0,0 +1,106 @@
|
||||
@page
|
||||
@model EveryThing.Pages.FleetFueling.DeleteModel
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>VehicleFueling</h4>
|
||||
<hr />
|
||||
<dl class="row">
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.DateOfFueling)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.DateOfFueling)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.FuelingCardInvoiceDate)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.FuelingCardInvoiceDate)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.FuelingCardInvoiceNumber)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.FuelingCardInvoiceNumber)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Quantity)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Quantity)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Mileage)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Mileage)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.FullTank)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.FullTank)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Amount)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Amount)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.City)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.City)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Reference)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Reference)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Note)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Note)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Vehicle)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Vehicle.RegistrationNumber)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Employee)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Employee.BankAccount)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Country)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Country.Title)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.VehicleFuelingCard)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.VehicleFuelingCard.CardNumber)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.VehicleFuelType)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.VehicleFuelType.Title)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form method="post">
|
||||
<input type="hidden" asp-for="VehicleFueling.IdVehicleFueling" />
|
||||
<input type="submit" value="Delete" class="btn btn-danger" /> |
|
||||
<a asp-page="./Index">Back to List</a>
|
||||
</form>
|
||||
</div>
|
||||
64
EveryThing/Pages/FleetFueling/Delete.cshtml.cs
Normal file
64
EveryThing/Pages/FleetFueling/Delete.cshtml.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using EveryThing.Data;
|
||||
using EveryThing.Models.Vehicle;
|
||||
|
||||
namespace EveryThing.Pages.FleetFueling
|
||||
{
|
||||
public class DeleteModel : PageModel
|
||||
{
|
||||
private readonly ApplicationDbContext _context;
|
||||
|
||||
public DeleteModel(ApplicationDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
|
||||
[BindProperty]
|
||||
public Models.Vehicle.VehicleFueling VehicleFueling { get; set; }
|
||||
|
||||
public async Task<IActionResult> OnGetAsync(int? id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
VehicleFueling = await _context.VehicleFuelings
|
||||
.Include(v => v.Country)
|
||||
.Include(v => v.Employee)
|
||||
.Include(v => v.Vehicle)
|
||||
.Include(v => v.VehicleFuelType)
|
||||
.Include(v => v.VehicleFuelingCard).FirstOrDefaultAsync(m => m.IdVehicleFueling == id);
|
||||
|
||||
if (VehicleFueling == null)
|
||||
{
|
||||
return NotFound();
|
||||
}
|
||||
return Page();
|
||||
}
|
||||
|
||||
public async Task<IActionResult> OnPostAsync(int? id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
VehicleFueling = await _context.VehicleFuelings.FindAsync(id);
|
||||
|
||||
if (VehicleFueling != null)
|
||||
{
|
||||
_context.VehicleFuelings.Remove(VehicleFueling);
|
||||
await _context.SaveChangesAsync();
|
||||
}
|
||||
|
||||
return RedirectToPage("./Index");
|
||||
}
|
||||
}
|
||||
}
|
||||
103
EveryThing/Pages/FleetFueling/Details.cshtml
Normal file
103
EveryThing/Pages/FleetFueling/Details.cshtml
Normal file
@@ -0,0 +1,103 @@
|
||||
@page
|
||||
@model EveryThing.Pages.FleetFueling.DetailsModel
|
||||
|
||||
<div>
|
||||
<h4>VehicleFueling</h4>
|
||||
<hr />
|
||||
<dl class="row">
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.DateOfFueling)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.DateOfFueling)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.FuelingCardInvoiceDate)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.FuelingCardInvoiceDate)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.FuelingCardInvoiceNumber)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.FuelingCardInvoiceNumber)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Quantity)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Quantity)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Mileage)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Mileage)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.FullTank)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.FullTank)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Amount)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Amount)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.City)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.City)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Reference)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Reference)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Note)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Note)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Vehicle)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Vehicle.RegistrationNumber)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Employee)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Employee.BankAccount)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.Country)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.Country.Title)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.VehicleFuelingCard)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.VehicleFuelingCard.CardNumber)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling.VehicleFuelType)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.VehicleFueling.VehicleFuelType.Title)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div>
|
||||
<a asp-page="./Edit" asp-route-id="@Model.VehicleFueling.IdVehicleFueling">Edit</a> |
|
||||
<a asp-page="./Index">Back to List</a>
|
||||
</div>
|
||||
45
EveryThing/Pages/FleetFueling/Details.cshtml.cs
Normal file
45
EveryThing/Pages/FleetFueling/Details.cshtml.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using EveryThing.Data;
|
||||
using EveryThing.Models.Vehicle;
|
||||
|
||||
namespace EveryThing.Pages.FleetFueling
|
||||
{
|
||||
public class DetailsModel : PageModel
|
||||
{
|
||||
private readonly ApplicationDbContext _context;
|
||||
|
||||
public DetailsModel(ApplicationDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
|
||||
public Models.Vehicle.VehicleFueling VehicleFueling { get; set; }
|
||||
|
||||
public async Task<IActionResult> OnGetAsync(int? id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
VehicleFueling = await _context.VehicleFuelings
|
||||
.Include(v => v.Country)
|
||||
.Include(v => v.Employee)
|
||||
.Include(v => v.Vehicle)
|
||||
.Include(v => v.VehicleFuelType)
|
||||
.Include(v => v.VehicleFuelingCard).FirstOrDefaultAsync(m => m.IdVehicleFueling == id);
|
||||
|
||||
if (VehicleFueling == null)
|
||||
{
|
||||
return NotFound();
|
||||
}
|
||||
return Page();
|
||||
}
|
||||
}
|
||||
}
|
||||
99
EveryThing/Pages/FleetFueling/Edit.cshtml
Normal file
99
EveryThing/Pages/FleetFueling/Edit.cshtml
Normal file
@@ -0,0 +1,99 @@
|
||||
@page
|
||||
@model EveryThing.Pages.FleetFueling.EditModel
|
||||
|
||||
<h4>VehicleFueling</h4>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<form method="post">
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="VehicleFueling.IdVehicleFueling" />
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.IdVehicleFk" class="control-label"></label>
|
||||
<select asp-for="VehicleFueling.IdVehicleFk" class="form-control" asp-items="ViewBag.IdVehicleFk"></select>
|
||||
<span asp-validation-for="VehicleFueling.IdVehicleFk" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.IdEmployeeFk" class="control-label"></label>
|
||||
<select asp-for="VehicleFueling.IdEmployeeFk" class="form-control" asp-items="ViewBag.IdEmployeeFk"></select>
|
||||
<span asp-validation-for="VehicleFueling.IdEmployeeFk" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.DateOfFueling" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.DateOfFueling" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.DateOfFueling" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.IdVehicleFuelingCardFk" class="control-label"></label>
|
||||
<select asp-for="VehicleFueling.IdVehicleFuelingCardFk" class="form-control" asp-items="ViewBag.IdVehicleFuelingCardFk"></select>
|
||||
<span asp-validation-for="VehicleFueling.IdVehicleFuelingCardFk" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.FuelingCardInvoiceDate" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.FuelingCardInvoiceDate" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.FuelingCardInvoiceDate" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.FuelingCardInvoiceNumber" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.FuelingCardInvoiceNumber" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.FuelingCardInvoiceNumber" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.IdVehicleFuelTypeFk" class="control-label"></label>
|
||||
<select asp-for="VehicleFueling.IdVehicleFuelTypeFk" class="form-control" asp-items="ViewBag.IdVehicleFuelTypeFk"></select>
|
||||
<span asp-validation-for="VehicleFueling.IdVehicleFuelTypeFk" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.Quantity" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.Quantity" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.Quantity" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.Mileage" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.Mileage" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.Mileage" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" asp-for="VehicleFueling.FullTank" /> @Html.DisplayNameFor(model => model.VehicleFueling.FullTank)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.Amount" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.Amount" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.Amount" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.IdCountryFk" class="control-label"></label>
|
||||
<select asp-for="VehicleFueling.IdCountryFk" class="form-control" asp-items="ViewBag.IdCountryFk"></select>
|
||||
<span asp-validation-for="VehicleFueling.IdCountryFk" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.City" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.City" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.City" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.Reference" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.Reference" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.Reference" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="VehicleFueling.Note" class="control-label"></label>
|
||||
<input asp-for="VehicleFueling.Note" class="form-control" />
|
||||
<span asp-validation-for="VehicleFueling.Note" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<a asp-page="./Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
||||
}
|
||||
87
EveryThing/Pages/FleetFueling/Edit.cshtml.cs
Normal file
87
EveryThing/Pages/FleetFueling/Edit.cshtml.cs
Normal file
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using EveryThing.Data;
|
||||
using EveryThing.Models.Vehicle;
|
||||
|
||||
namespace EveryThing.Pages.FleetFueling
|
||||
{
|
||||
public class EditModel : PageModel
|
||||
{
|
||||
private readonly ApplicationDbContext _context;
|
||||
|
||||
public EditModel(ApplicationDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
|
||||
[BindProperty]
|
||||
public Models.Vehicle.VehicleFueling VehicleFueling { get; set; }
|
||||
|
||||
public async Task<IActionResult> OnGetAsync(int? id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
VehicleFueling = await _context.VehicleFuelings
|
||||
.Include(v => v.Country)
|
||||
.Include(v => v.Employee)
|
||||
.Include(v => v.Vehicle)
|
||||
.Include(v => v.VehicleFuelType)
|
||||
.Include(v => v.VehicleFuelingCard).FirstOrDefaultAsync(m => m.IdVehicleFueling == id);
|
||||
|
||||
if (VehicleFueling == null)
|
||||
{
|
||||
return NotFound();
|
||||
}
|
||||
ViewData["IdCountryFk"] = new SelectList(_context.CodeTableCountries, "IdCountry", "Title");
|
||||
ViewData["IdEmployeeFk"] = new SelectList(_context.CodeTableEmployees, "IdEmployee", "BankAccount");
|
||||
ViewData["IdVehicleFk"] = new SelectList(_context.Vehicles, "IdVehicle", "RegistrationNumber");
|
||||
ViewData["IdVehicleFuelTypeFk"] = new SelectList(_context.VehicleFuelTypes, "IdVehicleFuelType", "Title");
|
||||
ViewData["IdVehicleFuelingCardFk"] = new SelectList(_context.VehicleFuelingCards, "IdFuelingCard", "CardNumber");
|
||||
return Page();
|
||||
}
|
||||
|
||||
// To protect from overposting attacks, please enable the specific properties you want to bind to, for
|
||||
// more details see https://aka.ms/RazorPagesCRUD.
|
||||
public async Task<IActionResult> OnPostAsync()
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
return Page();
|
||||
}
|
||||
|
||||
_context.Attach(VehicleFueling).State = EntityState.Modified;
|
||||
|
||||
try
|
||||
{
|
||||
await _context.SaveChangesAsync();
|
||||
}
|
||||
catch (DbUpdateConcurrencyException)
|
||||
{
|
||||
if (!VehicleFuelingExists(VehicleFueling.IdVehicleFueling))
|
||||
{
|
||||
return NotFound();
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
return RedirectToPage("./Index");
|
||||
}
|
||||
|
||||
private bool VehicleFuelingExists(int id)
|
||||
{
|
||||
return _context.VehicleFuelings.Any(e => e.IdVehicleFueling == id);
|
||||
}
|
||||
}
|
||||
}
|
||||
339
EveryThing/Pages/FleetFueling/Index.cshtml
Normal file
339
EveryThing/Pages/FleetFueling/Index.cshtml
Normal file
@@ -0,0 +1,339 @@
|
||||
@page
|
||||
@model EveryThing.Pages.FleetFueling.IndexModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Gorivo";
|
||||
Layout = "~/Pages/Layouts/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<h4 class="d-flex justify-content-between align-items-center w-100 font-weight-bold py-1 mb-4">
|
||||
<span>
|
||||
<span class="text-muted font-weight-light">Gorivo /</span> Pregled
|
||||
</span>
|
||||
|
||||
<a asp-page="Create" class="btn btn-primary"><span class="fa fas fa-plus"></span> Vnos porabe goriva</a>
|
||||
</h4>
|
||||
|
||||
<div class="row mb-4">
|
||||
<div class="col-md-2">
|
||||
<select type="text" class="form-control selectpicker" data-style="btn-default" placeholder="Jane Doe" asp-items="Html.GetEnumSelectList<Models.CodeTable.CodeTableEmployeeGender>()">
|
||||
<option value="">Vozilo</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<select type="text" class="form-control selectpicker" data-style="btn-default" placeholder="Jane Doe" asp-items="Html.GetEnumSelectList<Models.CodeTable.CodeTableEmployeeGender>()">
|
||||
<option value="">Kartica</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<select type="text" class="form-control selectpicker" data-style="btn-default" placeholder="Jane Doe" asp-items="Html.GetEnumSelectList<Models.CodeTable.CodeTableEmployeeGender>()">
|
||||
<option value="">Voznik</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<button class="btn btn-primary"><i class="far fa-sync"></i> Osveži</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-xl-6">
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="far fa-road text-danger" style="font-size: 2rem"></div>
|
||||
<div class="ml-3">
|
||||
<div class="text-muted small">Prevoženo [km]</div>
|
||||
<div class="text-large">60.067,00</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 col-xl-6">
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="far fa-gas-pump text-info" style="font-size: 2rem"></div>
|
||||
<div class="ml-3">
|
||||
<div class="text-muted small">Natočeno gorivo [l]</div>
|
||||
<div class="text-large">18.461,00</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-xl-6">
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="far fa-leaf text-success" style="font-size: 2rem"></div>
|
||||
<div class="ml-3">
|
||||
<div class="text-muted small">Natočeno AdBlue [l]</div>
|
||||
<div class="text-large">1.572,00</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 col-xl-6">
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="far fa-toolbox text-warning" style="font-size: 2rem"></div>
|
||||
<div class="ml-3">
|
||||
<div class="text-muted small">Gorivo delavnica [l]</div>
|
||||
<div class="text-large">1.484,00</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="card mb-4">
|
||||
<div class="card-body p-2">
|
||||
<div style="height: 202px;">
|
||||
<canvas id="statistics-chart-1"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-xl-12">
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="far fa-tachometer-alt text-info" style="font-size: 2rem"></div>
|
||||
<div class="ml-3">
|
||||
<div class="text-muted small">Poraba goriva [l/100km]</div>
|
||||
<div class="text-large">29,87</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-xl-12">
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="far fa-tachometer-alt text-success" style="font-size: 2rem"></div>
|
||||
<div class="ml-3">
|
||||
<div class="text-muted small">Poraba AdBlue [l/100km]</div>
|
||||
<div class="text-large">7,03</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="container-m-nx mt-0 mb-4">
|
||||
|
||||
<div class="card">
|
||||
<h6 class="card-header">
|
||||
Seznam porabe goriva
|
||||
|
||||
@*<button class="btn btn-sm btn-primary" data-toggle="ajax-modal" data-url="@Url.Page("/Notes/Create", "Modal")">
|
||||
<span class="ion ion-md-add"></span> Vnos porabe goriva
|
||||
</button>*@
|
||||
</h6>
|
||||
<table class="table card-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].DateOfFueling)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].FuelingCardInvoiceDate)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].FuelingCardInvoiceNumber)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].Quantity)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].Mileage)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].FullTank)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].Amount)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].City)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].Reference)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].Note)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].Vehicle)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].Employee)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].Country)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].VehicleFuelingCard)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.VehicleFueling[0].VehicleFuelType)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model.VehicleFueling)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DateOfFueling)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.FuelingCardInvoiceDate)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.FuelingCardInvoiceNumber)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Quantity)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Mileage)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.FullTank)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Amount)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.City)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Reference)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Note)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Vehicle.RegistrationNumber)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Employee.BankAccount)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Country.Title)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.VehicleFuelingCard.CardNumber)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.VehicleFuelType.Title)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-page="./Edit" asp-route-id="@item.IdVehicleFueling">Edit</a> |
|
||||
<a asp-page="./Details" asp-route-id="@item.IdVehicleFueling">Details</a> |
|
||||
<a asp-page="./Delete" asp-route-id="@item.IdVehicleFueling">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
||||
|
||||
<script src="~/vendor/libs/chartjs/chartjs.js"></script>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
var chart1 = new Chart(document.getElementById('statistics-chart-1').getContext("2d"),
|
||||
{
|
||||
type: 'line',
|
||||
data: {
|
||||
labels: [
|
||||
'2016-10', '2016-11', '2016-12', '2017-01', '2017-02', '2017-03', '2017-04', '2017-05'
|
||||
],
|
||||
datasets: [
|
||||
{
|
||||
label: 'Prevoženo [km]',
|
||||
data: [93, 25, 95, 59, 46, 68, 4, 41],
|
||||
borderWidth: 1,
|
||||
backgroundColor: 'rgba(217,83,79,0)',
|
||||
borderColor: '#d9534f',
|
||||
pointBackgroundColor: '#d9534f'
|
||||
|
||||
}, {
|
||||
label: 'Natočeno gorivo [l]',
|
||||
data: [53, 1, 43, 28, 56, 82, 80, 66],
|
||||
borderWidth: 1,
|
||||
backgroundColor: 'rgba(40,195,215,0)',
|
||||
borderColor: '#28c3d7',
|
||||
pointBackgroundColor: '#28c3d7'
|
||||
}, {
|
||||
label: 'Natočeno AdBlue [l]',
|
||||
data: [83, 1, 20, 28, 70, 82, 40, 66],
|
||||
borderWidth: 1,
|
||||
backgroundColor: 'rgba(2,188,119,0)',
|
||||
borderColor: '#02BC77',
|
||||
pointBackgroundColor: '#02BC77'
|
||||
}, {
|
||||
label: 'Poraba goriva [l/100km]',
|
||||
data: [40, 1, 5, 28, 56, 20, 40, 33],
|
||||
borderWidth: 1,
|
||||
backgroundColor: 'rgba(255,217,80,0)',
|
||||
borderColor: '#FFD950',
|
||||
pointBackgroundColor: '#FFD950'
|
||||
}
|
||||
]
|
||||
},
|
||||
options: {
|
||||
scales: {
|
||||
xAxes: [
|
||||
{
|
||||
gridLines: {
|
||||
display: false
|
||||
},
|
||||
ticks: {
|
||||
fontColor: '#aaa'
|
||||
}
|
||||
}
|
||||
],
|
||||
yAxes: [
|
||||
{
|
||||
gridLines: {
|
||||
display: false
|
||||
},
|
||||
ticks: {
|
||||
fontColor: '#aaa',
|
||||
stepSize: 10
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
responsive: true,
|
||||
maintainAspectRatio: false
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
}
|
||||
|
||||
34
EveryThing/Pages/FleetFueling/Index.cshtml.cs
Normal file
34
EveryThing/Pages/FleetFueling/Index.cshtml.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using EveryThing.Data;
|
||||
using EveryThing.Models.Vehicle;
|
||||
|
||||
namespace EveryThing.Pages.FleetFueling
|
||||
{
|
||||
public class IndexModel : PageModel
|
||||
{
|
||||
private readonly ApplicationDbContext _context;
|
||||
|
||||
public IndexModel(ApplicationDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
|
||||
public IList<Models.Vehicle.VehicleFueling> VehicleFueling { get;set; }
|
||||
|
||||
public async Task OnGetAsync()
|
||||
{
|
||||
VehicleFueling = await _context.VehicleFuelings
|
||||
.Include(v => v.Country)
|
||||
.Include(v => v.Employee)
|
||||
.Include(v => v.Vehicle)
|
||||
.Include(v => v.VehicleFuelType)
|
||||
.Include(v => v.VehicleFuelingCard).ToListAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user