mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Pass machine type to view model.
This commit is contained in:
@@ -164,7 +164,7 @@ namespace Marechai.Services
|
|||||||
var model = new MachineViewModel
|
var model = new MachineViewModel
|
||||||
{
|
{
|
||||||
Introduced = machine.Introduced, Name = machine.Name, CompanyId = machine.CompanyId,
|
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);
|
Company company = await _context.Companies.FindAsync(model.CompanyId);
|
||||||
|
|||||||
Reference in New Issue
Block a user