示例#1
0
        public Employee GetEmployee(int ID)
        {
            Employee employee = context.Employees.Find(ID);

            return(employee);
        }
示例#2
0
 public Employee AddEmployee(Employee employee)
 {
     context.Employees.Add(employee);
     context.SaveChanges();
     return(employee);
 }