Minor cleanup

This commit is contained in:
Boris Milašinović
2026-04-27 00:30:31 +02:00
parent 1415005b82
commit 1f91bee61d
13 changed files with 14 additions and 35 deletions

View File

@@ -57,7 +57,6 @@ public class PeopleController : Controller
public async Task<IActionResult> Row(int id)
{
var person = await ctx.People
.AsNoTracking()
.Select(p => new PersonViewModel
{
Id = p.Id,
@@ -85,7 +84,6 @@ public class PeopleController : Controller
public async Task<IActionResult> EditRow(int id)
{
var person = await ctx.People
.AsNoTracking()
.Select(p => new PersonViewModel
{
Id = p.Id,
@@ -198,7 +196,6 @@ public class PeopleController : Controller
await ctx.SaveChangesAsync();
var rowModel = await ctx.People
.AsNoTracking()
.Where(p => p.Id == id)
.Select(p => new PersonViewModel
{
@@ -263,7 +260,6 @@ public class PeopleController : Controller
var countryFilter = SieveModelExtensions.ExtractFilterValue(normalizedFilters, "CountryCode", "==");
var baseQuery = ctx.People
.AsNoTracking()
.Select(p => new PersonViewModel
{
Id = p.Id,
@@ -323,7 +319,6 @@ public class PeopleController : Controller
private async Task<List<SelectListItem>> GetCountryOptionsAsync(string? selectedCode = null)
{
return await ctx.Countries
.AsNoTracking()
.OrderBy(c => c.Name)
.Select(c => new SelectListItem
{