Exemplo n.º 1
0
 public Personel Get(int id)
 {
     using (WFContext context = new WFContext())
     {
         return(context.Personels.SingleOrDefault(s => s.ID == id));
     }
 }
Exemplo n.º 2
0
 public List <Personel> GetAll()
 {
     using (WFContext context = new WFContext())
     {
         return(context.Personels.ToList());
     }
 }
Exemplo n.º 3
0
 public void Delete(Personel personel)
 {
     using (WFContext context = new WFContext())
     {
         context.Personels.Add(personel);
         context.SaveChanges();
     }
 }