using Microsoft.EntityFrameworkCore;
using ReallifeGamemode.Server.Job;
using ReallifeGamemode.Server.Managers;
using ReallifeGamemode.Server.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ReallifeGamemode.Server.Entities
{
    public class JobVehicle : ServerVehicle
    {
        public int JobId { get; set; }

        public JobBase GetJob() => JobManager.GetJob(JobId);

        public override string ToString()
        {
            using (var dbContext = new DatabaseContext())
                return "Job Fahrzeug | Job: " + this.GetJob().Name;
        }
    }
}
