public IEnumerable <Endorsement> GetAll() { using (AceSoftContext db = new AceSoftContext()) { return(db.Endorsement.ToArray()); } }
public Driver GetDriverById(int id) { using (AceSoftContext db = new AceSoftContext()) { return(db.Driver.FirstOrDefault(d => d.Id == id)); } }
public IEnumerable <Employee> GetAll() { using (AceSoftContext db = new AceSoftContext()) { return(db.Employee.ToArray()); } }
public IEnumerable <Driver> GetAll() { using (AceSoftContext db = new AceSoftContext()) { return(db.Driver.ToArray()); } }