Esempio n. 1
0
 public Contract GetById(int id)
 {
     var db = new DatabaseContext();
       return db.Contracts.SingleOrDefault(c => c.Id == id);
 }
Esempio n. 2
0
 public ICollection<CapabilityCategory> Get()
 {
     var db = new DatabaseContext();
       return db.Categories.ToList();
 }
Esempio n. 3
0
 public Company Get()
 {
     var db = new DatabaseContext();
       return db.Companies.SingleOrDefault(c => c.Name.Equals("Harris", StringComparison.OrdinalIgnoreCase));
 }