public EmployeeController(Payroll_DbContext _context, IHostingEnvironment _environment, SignInManager <AppUser> _signInManager, UserManager <AppUser> _userManager) { context = _context; environment = _environment; signInManager = _signInManager; userManager = _userManager; }
public AccountController(Payroll_DbContext context, UserManager <AppUser> userManager, SignInManager <AppUser> signInManager, RoleManager <IdentityRole> roleManager) { this.context = context; this.userManager = userManager; this.signInManager = signInManager; this.roleManager = roleManager; }
public static IEnumerable <SelectListItem> GetWorkPlaceSelect <T>(this Payroll_DbContext context, int?Id) { IEnumerable <SelectListItem> WorkPlaces = null; var model = context.Model; var entityTypes = model.GetEntityTypes(); var entityType = entityTypes.First(t => t.ClrType == typeof(T)).Name; if (entityType == "HR_Payroll_App.Models.Company") { WorkPlaces = context.Companies.Where(x => x.HoldingId == Id.Value) .Select(x => new SelectListItem { Text = x.Name, Value = x.Id.ToString() }); } if (entityType == "HR_Payroll_App.Models.Department") { WorkPlaces = context.Departments.Where(x => x.Id == Id.Value) .Select(x => new SelectListItem { Text = x.Name, Value = x.Id.ToString() }); } if (entityType == "HR_Payroll_App.Models.Position") { WorkPlaces = context.Positions.Where(x => x.DepartmentId == Id.Value) .Select(x => new SelectListItem { Text = x.Namme, Value = x.Id.ToString() }); } return(WorkPlaces); }
public IncentiveController(Payroll_DbContext _context, SignInManager <AppUser> _signInManager, UserManager <AppUser> _userManager) { context = _context; signInManager = _signInManager; userManager = _userManager; }
public OldWorkPlaceViewComponent(Payroll_DbContext context) { this.context = context; }
public PositionController(Payroll_DbContext _context) { context = _context; }
public CompanyController(Payroll_DbContext _context) { context = _context; }
public AdminController(Payroll_DbContext _context, IHostingEnvironment _environment) { context = _context; environment = _environment; }
public DepartmentController(Payroll_DbContext _context) { context = _context; }
public OldWorkPlaceController(Payroll_DbContext _context) { context = _context; }
public BranchController(Payroll_DbContext _context) { context = _context; }
public SalaryController(Payroll_DbContext _context) { context = _context; }