//Call the Dispose method later public void Dispose(bool disposing) { if (disposing) { Dispose(); } if (empRepo != null) { empRepo = null; } if (BunitsRepo != null) { BunitsRepo = null; } if (ReportRepo != null) { ReportRepo = null; } if (employeeManager != null) { employeeManager = null; } if (RoleManager != null) { RoleManager = null; } this.Dispose(); }
public EmployeesController(IEmployees pIEmployees, IBusinessUnits pIBusinessUnits, IDepartments pIDepartments, IPositions pIPositions, IMEmployees pIMEmployees) { lIEmployees = pIEmployees; lIBusinessUnits = pIBusinessUnits; lIDepartments = pIDepartments; lIPositions = pIPositions; lIMEmployees = pIMEmployees; }
public RequisitionController(IRequisition RParam, IBusinessUnits BParam, IEmploymentStatus SParam, IJobtitles jParam, IReportManager RMParam, IEmployees EParam) { RequisitionRepo = RParam; BunitsRepo = BParam; statusRepo = SParam; JobRepo = jParam; managerRepo = RMParam; EmployeeRepo = EParam; }
public ConfigurationController(IBusinessUnits BParam, IDepartments DParam, IidentityCodes idCodes, IJobtitles jParam, IPositions pParam, IPrefixes prparam, IEmploymentStatus status, ILeaveManagement lParam) { this.BusinessRepo = BParam; this.DeptRepo = DParam; this.IdentityRepo = idCodes; this.JobRepo = jParam; this.positionRepo = pParam; this.prefixRepo = prparam; this.statusRepo = status; this.leaveRepo = lParam; }
public HRController(IEmployees empParam, IBusinessUnits busParam, IReportManager rParam, Rolemanager RoleParam, EmployeeManager EParam, ApplicationDbContext dbParam, IEmploymentStatus SParam) { db = dbParam; UserManager = new ApplicationUserManager(new UserStore <ApplicationUser>(db)); empRepo = empParam; BunitsRepo = busParam; ReportRepo = rParam; employeeManager = EParam; RoleManager = RoleParam; db = dbParam; statusRepo = SParam; }
public PageController(IAssetsTypes pIAssetsTypes, IAssetsGroups pIAssetsGroups, IAssetsItems pIAssetsItems, IBusinessUnits pIBusinessUnits, IDepartments pIDepartments, IEmployees pIEmployees, IPositions pIPositions, IMAssetsItems pIMAssetsItems, IMAuditsTrails pIMAuditsTrails, IMEmployees pIMEmployees, IMMRs pIMMRs) { #region BLO lIAssetsTypes = pIAssetsTypes; lIAssetsGroups = pIAssetsGroups; lIAssetsItems = pIAssetsItems; lIBusinessUnits = pIBusinessUnits; lIDepartments = pIDepartments; lIEmployees = pIEmployees; lIPositions = pIPositions; #endregion #region Models lIMAssetsItems = pIMAssetsItems; lIMAuditsTrails = pIMAuditsTrails; lIMEmployees = pIMEmployees; lIMMRs = pIMMRs; #endregion }
public BusinessController(IBusinessUnits _businessUnits) { businessUnits = _businessUnits; }
public LeaveController(ILeaveManagement lParam, IBusinessUnits bparam) { leaveRepo = lParam; BunitsRepo = bparam; leavemanagerRepo = new LeaveManager(leaveRepo, new EmployeeManager()); }