Pass machine type to view model.

This commit is contained in:
2020-08-04 22:00:04 +01:00
parent fbd5e0f796
commit 6742194798

View File

@@ -164,7 +164,7 @@ namespace Marechai.Services
var model = new MachineViewModel
{
Introduced = machine.Introduced, Name = machine.Name, CompanyId = machine.CompanyId,
Model = machine.Model
Model = machine.Model, Type = machine.Type
};
Company company = await _context.Companies.FindAsync(model.CompanyId);