public void CopyFrom(MachineryType type) { Id = type.Id; Name = type.Name; AreasId = type.Areas.Select(x => x.Id).ToList(); }
public Machinery() { Type = new MachineryType(); }
public Machinery(string name, MachineryType type) { Name = name; Type = type; }
public virtual Machinery SetType(MachineryType type) { Type = type; return(this); }
private bool CompareAreas(Machinery machine, MachineryType anyType) => anyType.Areas.Any(x => machine.Type.Areas.Any(z => x.Id == z.Id));