Move all database logic in machine view out of the view into the controller.

This commit is contained in:
2020-05-22 04:43:44 +01:00
parent 113b9fbad8
commit b3414bde1d
9 changed files with 359 additions and 152 deletions

View File

@@ -1,9 +1,23 @@
using System;
using System.Collections.Generic;
namespace Marechai.ViewModels
{
public class MachineViewModel
{
public int Id { get; set; }
public string Name { get; set; }
public string CompanyName { get; set; }
public int Id { get; set; }
public string Name { get; set; }
public string Model { get; set; }
public string CompanyName { get; set; }
public int CompanyId { get; set; }
public Guid? CompanyLogo { get; set; }
public DateTime? Introduced { get; set; }
public int? FamilyId { get; set; }
public string FamilyName { get; set; }
public List<GpuViewModel> Gpus { get; set; }
public List<MemoryViewModel> Memory { get; set; }
public List<ProcessorViewModel> Processors { get; set; }
public List<SoundSynthViewModel> SoundSynthetizers { get; set; }
public List<StorageViewModel> Storage { get; set; }
}
}