public List<TphEmployee> Tph_GetEmp() { using (var context = new TphContext()) { var emps = context.TphEmployees.ToList(); return emps; } }
public void Tph_AddEmp(TphEmployee emp) { using (var context = new TphContext()) { context.TphEmployees.Add(emp); context.SaveChanges(); } }