public List<TptEmployee> Tpt_GetEmp() { using (var context = new TptContext()) { var emps = context.TptEmployees.ToList(); return emps; } }
public void Tpt_AddEmp(TptContractEmployee emp) { using (var context = new TptContext()) { context.TptEmployees.Add(emp); context.SaveChanges(); } }