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