Frakcar /car fraktionsname anzeigen 361
This commit is contained in:
@@ -21,7 +21,8 @@ namespace ReallifeGamemode.Database.Entities
|
|||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return "Fraktions Fahrzeug | Fraktion: " + string.Join(", ", GetOwners());
|
using (var dbContext = new DatabaseContext())
|
||||||
|
return "Fraktions Fahrzeug | Fraktion: " + string.Join(", ", dbContext.Factions.Where(f => GetOwners().Contains(f.Id)).Select(f => f.Name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user