public static void SetNewLeader(Guid leaderId, Guid employeeId) { var employee = AccessBDStaff.Get(employeeId); var lead = AccessBDStaff.Get(leaderId); lead.Underlings.Add(employee.Id); employee.Leader = leaderId; AccessBDStaff.Update(employee); AccessBDStaff.Update(lead); }
public static Employee GetEmployee(Guid id) { return(AccessBDStaff.Get(id)); }