public ProjectsController(JobHunterDBContext context, UserManager <User> userManager) : base(context, userManager)
 {
 }
 public OffersController(JobHunterDBContext context, UserManager <User> userManager)
 {
     this.userManager = userManager;
     _context         = context;
 }
示例#3
0
 public RecruitersController(JobHunterDBContext context, UserManager <User> userManager)
 {
     _context         = context;
     this.userManager = userManager;
 }
 public ExperienceController(JobHunterDBContext context, UserManager <User> userManager) : base(context, userManager)
 {
 }
 public ResumeSectionController(JobHunterDBContext context, UserManager <User> userManager)
 {
     this.userManager = userManager;
     _context         = context;
 }
示例#6
0
 public InterviewsController(JobHunterDBContext context, UserManager <User> userManager)
 {
     _context         = context;
     this.userManager = userManager;
 }
 public UsersController(JobHunterDBContext context, UserManager <User> userManager, RoleManager <IdentityRole> roleManager)
 {
     _context         = context;
     this.userManager = userManager;
     this.roleManager = roleManager;
 }
示例#8
0
 public CompaniesController(JobHunterDBContext context)
 {
     _context = context;
 }
 public ApplicationsController(JobHunterDBContext context, UserManager <User> userManager)
 {
     this.userManager = userManager;
     _context         = context;
 }
 public EducationController(JobHunterDBContext context, UserManager <User> userManager) : base(context, userManager)
 {
 }
 public CertificationsController(JobHunterDBContext context, UserManager <User> userManager) : base(context, userManager)
 {
 }
示例#12
0
        public static async Task AddSampleData(JobHunterDBContext _context, UserManager <User> userManager, RoleManager <IdentityRole> roleManager)
        {
            if (!_context.Users.Any())
            {
                await AddSampleUserData(userManager);
            }
            if (!_context.Companies.Any())
            {
                _context.Companies.AddRange(SampleCompanyData());
            }
            if (!_context.Resumes.Any())
            {
                _context.Resumes.AddRange(SampleResumeData());
            }
            if (!_context.JobPosts.Any())
            {
                _context.JobPosts.AddRange(SampleJobPostData());
            }
            if (!_context.Skills.Any())
            {
                _context.Skills.AddRange(SampleSkillData());
            }

            if (!_context.Certifications.Any())
            {
                _context.Certifications.AddRange(SampleCertificationData());
            }
            if (!_context.Education.Any())
            {
                _context.Education.AddRange(SampleEducationData());
            }
            if (!_context.Experiences.Any())
            {
                _context.Experiences.AddRange(SampleExperienceData());
            }
            if (!_context.Awards.Any())
            {
                _context.Awards.AddRange(SampleAwardData());
            }
            if (!_context.Projects.Any())
            {
                _context.Projects.AddRange(SampleProjectData());
            }

            if (!_context.Applications.Any())
            {
                _context.Applications.AddRange(SampleApplicationData());
            }
            if (!_context.Referrals.Any())
            {
                _context.Referrals.AddRange(SampleReferralData());
            }
            if (!_context.Recruiters.Any())
            {
                _context.Recruiters.AddRange(SampleRecruiterData());
            }

            if (!_context.Offers.Any())
            {
                _context.Offers.AddRange(SampleOfferData());
            }
            if (!_context.Interviews.Any())
            {
                _context.Interviews.AddRange(SampleInterviewData());
            }
            await _context.SaveChangesAsync();
        }