public JobTypesController(NajmetAlraqeeContext context, IJobTypeReository jobtype, IMapper mapper, IToastNotification toastNotification) { _context = context; _jobtype = jobtype; _mapper = mapper; _toastNotification = toastNotification; }
public NationalitiesController(NajmetAlraqeeContext context, INationalityRepository nationality, IMapper mapper, IToastNotification toastNotification) { _context = context; _nationality = nationality; _mapper = mapper; _toastNotification = toastNotification; }
public CurrenciesController(NajmetAlraqeeContext context, ICurrencyRepository currency, ICurrencyTypeRepository type, IMapper mapper, IToastNotification toastNotification) { _currency = currency; _mapper = mapper; _toastNotification = toastNotification; _type = type; }
public CountriesController(NajmetAlraqeeContext context, IToastNotification toastNotification, ICountryRepository country, IMapper mapper) { _context = context; _toastNotification = toastNotification; _country = country; _mapper = mapper; }
public ExpensesController(NajmetAlraqeeContext context, IAccountTreeRepository Acctree, IExpenseRepository expense, IMapper mapper, IToastNotification toastNotification) { _context = context; _expense = expense; _mapper = mapper; _Acctree = Acctree; _toastNotification = toastNotification; }
public UsersController(NajmetAlraqeeContext context, IUserRepository user, IHostingEnvironment environment, IMapper mapper, UserManager <User> userManager, SignInManager <User> signInManager) { _context = context; _environment = environment; _mapper = mapper; _user = user; _userManager = userManager; _signInManager = signInManager; }
public BankDetailsController(NajmetAlraqeeContext context, IBankDetailRepository bank, IAccountTreeRepository Acctree, IMapper mapper, IToastNotification toastNotification) { _context = context; _bank = bank; _mapper = mapper; _Acctree = Acctree; _toastNotification = toastNotification; }
public DelegatesController(NajmetAlraqeeContext context, INationalityRepository nationality, IAccountTreeRepository Acctree, IDelegateReository Delegate, IDelegateTypeRepository delegatetype, IMapper mapper, IToastNotification toastNotification) { _context = context; _Delegate = Delegate; _mapper = mapper; _toastNotification = toastNotification; _nationality = nationality; _delegatetype = delegatetype; _Acctree = Acctree; }
public EmployeeController(NajmetAlraqeeContext context, IForeignAgencyRepository foreignagency, IJobTypeReository jobtype, IReligionRepository religion, ISocialStatusRepository socialstatus, IGenderRepository gender, INationalityRepository nationality, IEmployeeRepository emp, IMapper mapper, IToastNotification toastNotification) { _context = context; _mapper = mapper; _toastNotification = toastNotification; _emp = emp; _nationality = nationality; _gender = gender; _socialstatus = socialstatus; _religion = religion; _foreignagency = foreignagency; _jobtype = jobtype; }
private static void DummyData(IServiceProvider serviceProvider, NajmetAlraqeeContext _context) { //if (!_context.Hospitals.Any()) //{ // var hospitals = LookupsInitializer.GetHospitals(); // _context.Hospitals.AddRange(hospitals); // _context.SaveChanges(); //} //if (!_context.HospitalOffers.Any()) //{ // var offers = LookupsInitializer.GetOffers(); // _context.HospitalOffers.AddRange(offers); // _context.SaveChanges(); //} //DoctorInitializer.GenerateDoctorUsers(serviceProvider, _context); }
public static void Initialize(IServiceProvider serviceProvider, NajmetAlraqeeContext _context) { //if (!_context.Countries.Any()) //{ // _context.Countries.AddRange(LookupsInitializer.GetCountries()); // _context.SaveChanges(); //} if (!_context.Cities.Any()) { _context.Cities.AddRange(LookupsInitializer.GetCities()); _context.SaveChanges(); } if (!_context.EducationLevels.Any()) { _context.EducationLevels.AddRange(LookupsInitializer.GetEducationLevels()); _context.SaveChanges(); } if (!_context.Genders.Any()) { _context.Genders.AddRange(LookupsInitializer.GetGenders()); _context.SaveChanges(); } //if (!_context.Nationalities.Any()) //{ // _context.Nationalities.AddRange(LookupsInitializer.GetNationalties()); // _context.SaveChanges(); //} IdentityInitializing.AddUser(serviceProvider, "*****@*****.**", "NajmetAlraqee@2018", "Administrator", "0568356825", ROLES.Root.ToString()); IdentityInitializing.AddUser(serviceProvider, "*****@*****.**", "NajmetAlraqee@2018", "Hospital Owner", "0568356825", ROLES.Administrator.ToString()); //DummyData(); }
public ForeignAgencyRepository(NajmetAlraqeeContext context) { _context = context; }
public ContractTypeRepository(NajmetAlraqeeContext context) { _context = context; }
public PartnerRepository(NajmetAlraqeeContext context) { _context = context; }
public GenderRepository(NajmetAlraqeeContext context) { _context = context; }
public ApplicationRolesController(RoleManager <IdentityRole> roleManager, NajmetAlraqeeContext context, UserManager <User> userManager) { this.roleManager = roleManager; this.userManager = userManager; _context = context; }
public FinancialPeriodStatusRepository(NajmetAlraqeeContext context) { _context = context; }
public ReturnReasonRepository(NajmetAlraqeeContext context) { _context = context; }
public SpecialEmployeeRepository(NajmetAlraqeeContext context) { _context = context; }
public InvoiceRepository(NajmetAlraqeeContext context) { _context = context; }
public DelegateReository(NajmetAlraqeeContext context) { _context = context; }
public SocialStatusRepository(NajmetAlraqeeContext context) { _context = context; }
public TransferPurposeRepository(NajmetAlraqeeContext context) { _context = context; }
public AccountClassificationRepository(NajmetAlraqeeContext context) { _context = context; }
public ReceiptDocRepository(NajmetAlraqeeContext context) { _context = context; }
public CustomerTypeRepository(NajmetAlraqeeContext context) { _context = context; }
public SnadReceiptCaluseRepository(NajmetAlraqeeContext context) { _context = context; }
public RecruitmentQaidStatusRepository(NajmetAlraqeeContext context) { _context = context; }
public ExpenseRepository(NajmetAlraqeeContext context) { _context = context; }
public SpecificContractRepository(NajmetAlraqeeContext context) { _context = context; }