Refactor viewmodels to use DTOs instead of viewmodels

This commit is contained in:
2025-11-13 15:21:11 +00:00
parent d9239f39c0
commit 10017850f8
210 changed files with 1196 additions and 1196 deletions

View File

@@ -35,9 +35,9 @@ namespace Marechai.Services;
public class StorageByMachineService(MarechaiContext context)
{
public async Task<List<StorageByMachineViewModel>> GetByMachine(int machineId) => await context.StorageByMachine
public async Task<List<StorageByMachineDto>> GetByMachine(int machineId) => await context.StorageByMachine
.Where(s => s.MachineId == machineId)
.Select(s => new StorageByMachineViewModel
.Select(s => new StorageByMachineDto
{
Id = s.Id,
Type = s.Type,