public virtual void OnPreInsert(EmployeeEx instance, EmployeeRole newRole) { // jobRole helps enforce role constraints // employee may have only one job role for 'job' role specs if (IsJobRole) { instance.JobRole = newRole; } }
public ActionResult LazyLoading_LoadAction([C1JsonRequest] TreeNode node) { var leaderID = (int?)node.DataItem["EmployeeID"]; return(this.C1Json(EmployeeEx.GetEmployees(leaderID, _db.Employees), false)); }
public ActionResult Load() { return(this.C1Json(EmployeeEx.GetEmployees(null, _db.Employees), false)); }
public virtual bool CanAddRoleFor(EmployeeEx employee) { return(false); }