public Staff Find(int id)
 {
     using (var context = new CercetasiEntities())
     {
         return(context.Staffs.Find(id));
     }
 }
 public IEnumerable <Staff> GetAll()
 {
     using (var context = new CercetasiEntities())
     {
         return(context.Staffs.ToList());
     }
 }
 public Trecere Find(int id)
 {
     using (var context = new CercetasiEntities())
     {
         return(context.Treceres.Find(id));
     }
 }
 public IEnumerable <Trecere> GetAll()
 {
     using (var context = new CercetasiEntities())
     {
         return(context.Treceres.ToList());
     }
 }
示例#5
0
 public Punct Find(int id)
 {
     using (var context = new CercetasiEntities())
     {
         return(context.Puncts.Find(id));
     }
 }
示例#6
0
 public IEnumerable <Punct> GetAll()
 {
     using (var context = new CercetasiEntities())
     {
         return(context.Puncts.ToList());
     }
 }