public void EditEmployee(Employee employee) { Employee empl= Employees.Find(employee.Id); empl.Name = employee.Name; empl.FullName = employee.FullName; empl.AspNetUsersId = employee.AspNetUsersId; empl.Email = employee.Email; empl.Position = employee.Position; empl.RoleId = employee.RoleId; empl.PhoneId = employee.PhoneId; empl.DateRegistration = employee.DateRegistration; }
public void DellEmpioyee(Employee employee) { Employees.Remove(employee); }
public void AddEmployee(Employee employee) { Employees.Add(employee); }