public List<CndEmployee> Cnd_GetEmp() { using (var context = new CndContext()) { var emp = context.CndEmployees.ToList(); return emp; } }
public void Cnd_AddEmp(CndEmployee emp) { using (var context = new CndContext()) { context.CndEmployees.Add(emp); context.SaveChanges(); } }