public IEnumerable <Endorsement> GetAll()
 {
     using (AceSoftContext db = new AceSoftContext())
     {
         return(db.Endorsement.ToArray());
     }
 }
Beispiel #2
0
 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());
     }
 }
Beispiel #4
0
 public IEnumerable <Driver> GetAll()
 {
     using (AceSoftContext db = new AceSoftContext())
     {
         return(db.Driver.ToArray());
     }
 }