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