Example #1
0
 public JobTypesController(NajmetAlraqeeContext context, IJobTypeReository jobtype, IMapper mapper, IToastNotification toastNotification)
 {
     _context           = context;
     _jobtype           = jobtype;
     _mapper            = mapper;
     _toastNotification = toastNotification;
 }
Example #2
0
 public NationalitiesController(NajmetAlraqeeContext context, INationalityRepository nationality, IMapper mapper, IToastNotification toastNotification)
 {
     _context           = context;
     _nationality       = nationality;
     _mapper            = mapper;
     _toastNotification = toastNotification;
 }
Example #3
0
 public CurrenciesController(NajmetAlraqeeContext context, ICurrencyRepository currency, ICurrencyTypeRepository type, IMapper mapper, IToastNotification toastNotification)
 {
     _currency          = currency;
     _mapper            = mapper;
     _toastNotification = toastNotification;
     _type = type;
 }
Example #4
0
 public CountriesController(NajmetAlraqeeContext context, IToastNotification toastNotification, ICountryRepository country, IMapper mapper)
 {
     _context           = context;
     _toastNotification = toastNotification;
     _country           = country;
     _mapper            = mapper;
 }
Example #5
0
 public ExpensesController(NajmetAlraqeeContext context, IAccountTreeRepository Acctree, IExpenseRepository expense, IMapper mapper, IToastNotification toastNotification)
 {
     _context           = context;
     _expense           = expense;
     _mapper            = mapper;
     _Acctree           = Acctree;
     _toastNotification = toastNotification;
 }
Example #6
0
 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;
 }
Example #7
0
 public BankDetailsController(NajmetAlraqeeContext context,
                              IBankDetailRepository bank,
                              IAccountTreeRepository Acctree,
                              IMapper mapper,
                              IToastNotification toastNotification)
 {
     _context           = context;
     _bank              = bank;
     _mapper            = mapper;
     _Acctree           = Acctree;
     _toastNotification = toastNotification;
 }
Example #8
0
 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;
 }
Example #9
0
        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;
        }
Example #10
0
        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);
        }
Example #11
0
        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();
        }
Example #12
0
 public ForeignAgencyRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #13
0
 public ContractTypeRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #14
0
 public PartnerRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #15
0
 public GenderRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #16
0
 public ApplicationRolesController(RoleManager <IdentityRole> roleManager, NajmetAlraqeeContext context, UserManager <User> userManager)
 {
     this.roleManager = roleManager;
     this.userManager = userManager;
     _context         = context;
 }
 public FinancialPeriodStatusRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #18
0
 public ReturnReasonRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #19
0
 public SpecialEmployeeRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #20
0
 public InvoiceRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #21
0
 public DelegateReository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #22
0
 public SocialStatusRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #23
0
 public TransferPurposeRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #24
0
 public AccountClassificationRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #25
0
 public ReceiptDocRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #26
0
 public CustomerTypeRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #27
0
 public SnadReceiptCaluseRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
 public RecruitmentQaidStatusRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #29
0
 public ExpenseRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }
Example #30
0
 public SpecificContractRepository(NajmetAlraqeeContext context)
 {
     _context = context;
 }