public bool Add(clsEmployee emp) { if (Exist(emp.myEmployee.Id) == false) { myEmpList.Add(emp.myEmployee.Id, emp); return(true); } else { return(false); } }
public clsEmployee Update(string EmpId, clsEmployee emp) { return(myEmpList[EmpId] = emp); }