public async Task <IActionResult> Create([Bind("LanguageId,Name,NativeName")] SystemLanguageCodes systemLanguageCodes) { if (ModelState.IsValid) { _context.Add(systemLanguageCodes); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(systemLanguageCodes)); }
public async Task <IActionResult> Create([Bind("Id,Role,IsInactive")] SecurityRoles securityRoles) { if (ModelState.IsValid) { securityRoles.Id = Guid.NewGuid(); _context.Add(securityRoles); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(securityRoles)); }
public async Task <IActionResult> Create([Bind("RegistrationDate,CompanyWebsite,ContactPhone,ContactName,CompanyLogo")] CompanyProfiles companyProfiles) { if (ModelState.IsValid) { companyProfiles.Id = Guid.NewGuid(); _context.Add(companyProfiles); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Create), "CompanyDescriptions", new { id = companyProfiles.Id })); } return(View(companyProfiles)); }
public async Task <IActionResult> Create([Bind("Id,Login,SourceIp,LogonDate,IsSuccesful")] SecurityLoginsLog securityLoginsLog) { if (ModelState.IsValid) { securityLoginsLog.Id = Guid.NewGuid(); _context.Add(securityLoginsLog); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } ViewData["Login"] = new SelectList(_context.SecurityLogins, "Id", "EmailAddress", securityLoginsLog.Login); return(View(securityLoginsLog)); }
public async Task <IActionResult> Create([Bind("Id,Applicant,Major,CertificateDiploma,StartDate,CompletionDate,CompletionPercent,TimeStamp")] ApplicantEducations applicantEducations) { if (ModelState.IsValid) { applicantEducations.Id = Guid.NewGuid(); _context.Add(applicantEducations); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } ViewData["Applicant"] = new SelectList(_context.ApplicantProfiles, "Id", "Id", applicantEducations.Applicant); return(View(applicantEducations)); }
public async Task <IActionResult> Create([Bind("Id,Applicant,Resume,LastUpdated")] ApplicantResumes applicantResumes) { if (ModelState.IsValid) { applicantResumes.Id = Guid.NewGuid(); _context.Add(applicantResumes); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } ViewData["Applicant"] = new SelectList(_context.ApplicantProfiles, "Id", "Id", applicantResumes.Applicant); return(View(applicantResumes)); }
public async Task <IActionResult> Create([Bind("Id,Login,Password,CreatedDate,PasswordUpdateDate,AgreementAcceptedDate,IsLocked,IsInactive,EmailAddress,PhoneNumber,FullName,ForceChangePassword,PrefferredLanguage,TimeStamp")] SecurityLogins securityLogins) { if (ModelState.IsValid) { securityLogins.Id = Guid.NewGuid(); _context.Add(securityLogins); await _context.SaveChangesAsync(); //return RedirectToAction(nameof(Index)); return(RedirectToAction(nameof(Create), "ApplicantProfiles", new { id = securityLogins.Id })); } return(View(securityLogins)); }
public async Task <IActionResult> Create([Bind("Id,Applicant,Skill,SkillLevel,StartMonth,StartYear,EndMonth,EndYear,TimeStamp")] ApplicantSkills applicantSkills) { if (ModelState.IsValid) { applicantSkills.Id = Guid.NewGuid(); _context.Add(applicantSkills); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } ViewData["Applicant"] = new SelectList(_context.ApplicantProfiles, "Id", "Id", applicantSkills.Applicant); return(View(applicantSkills)); }
public async Task <IActionResult> Create([Bind("JobName,JobDescriptions")] CompanyJobsDescriptions companyJobsDescriptions, Guid id) { companyJobsDescriptions.Job = id; if (ModelState.IsValid) { companyJobsDescriptions.Id = Guid.NewGuid(); _context.Add(companyJobsDescriptions); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Create), "CompanyJobSkills", new { id = companyJobsDescriptions.Job })); } ViewData["Job"] = new SelectList(_context.CompanyJobs, "Id", "Id", companyJobsDescriptions.Job); return(View(companyJobsDescriptions)); }
public async Task <IActionResult> Create([Bind("Id,Login,Role,TimeStamp")] SecurityLoginsRoles securityLoginsRoles) { if (ModelState.IsValid) { securityLoginsRoles.Id = Guid.NewGuid(); _context.Add(securityLoginsRoles); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } ViewData["Login"] = new SelectList(_context.SecurityLogins, "Id", "EmailAddress", securityLoginsRoles.Login); ViewData["Role"] = new SelectList(_context.SecurityRoles, "Id", "Role", securityLoginsRoles.Role); return(View(securityLoginsRoles)); }
public async Task <IActionResult> Create([Bind("Major,Importance")] CompanyJobEducations companyJobEducations, Guid id) { companyJobEducations.Job = id; if (ModelState.IsValid) { companyJobEducations.Id = Guid.NewGuid(); _context.Add(companyJobEducations); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index), "CompanyProfiles")); } ViewData["Job"] = new SelectList(_context.CompanyJobs, "Id", "Id", companyJobEducations.Job); return(View(companyJobEducations)); }
public async Task <IActionResult> Create([Bind("CountryCode,StateProvinceCode,StreetAddress,CityTown,ZipPostalCode")] CompanyLocations companyLocations, Guid id) { companyLocations.Company = id; if (ModelState.IsValid) { companyLocations.Id = Guid.NewGuid(); _context.Add(companyLocations); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index), "CompanyProfiles")); } ViewData["Company"] = new SelectList(_context.CompanyProfiles, "Id", "ContactPhone", companyLocations.Company); return(View(companyLocations)); }
public async Task <IActionResult> Create([Bind("Id,Applicant,CompanyName,CountryCode,Location,JobTitle,JobDescription,StartMonth,StartYear,EndMonth,EndYear,TimeStamp")] ApplicantWorkHistory applicantWorkHistory) { if (ModelState.IsValid) { applicantWorkHistory.Id = Guid.NewGuid(); _context.Add(applicantWorkHistory); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } ViewData["Applicant"] = new SelectList(_context.ApplicantProfiles, "Id", "Id", applicantWorkHistory.Applicant); ViewData["CountryCode"] = new SelectList(_context.SystemCountryCodes, "Code", "Code", applicantWorkHistory.CountryCode); return(View(applicantWorkHistory)); }
public async Task <IActionResult> Create([Bind("Company,ProfileCreated,IsInactive,IsCompanyHidden")] CompanyJobs companyJobs, Guid id) { companyJobs.Company = id; if (ModelState.IsValid) { companyJobs.Id = Guid.NewGuid(); _context.Add(companyJobs); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Create), "CompanyJobsDescriptions", new { id = companyJobs.Id })); } ViewData["Company"] = new SelectList(_context.CompanyProfiles, "Id", "ContactPhone", companyJobs.Company); return(View(companyJobs)); }
public async Task <IActionResult> Create([Bind("LanguageId,CompanyName,CompanyDescription")] CompanyDescriptions companyDescriptions, Guid id) { companyDescriptions.Company = id; if (ModelState.IsValid) { companyDescriptions.Id = Guid.NewGuid(); _context.Add(companyDescriptions); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Create), "CompanyLocations", new { id = companyDescriptions.Company })); } ViewData["Company"] = new SelectList(_context.CompanyProfiles, "Id", "ContactPhone", companyDescriptions.Company); ViewData["LanguageId"] = new SelectList(_context.SystemLanguageCodes, "LanguageId", "LanguageId", companyDescriptions.LanguageId); return(View(companyDescriptions)); }
public async Task <IActionResult> Create([Bind("CurrentSalary,CurrentRate,Currency,CountryCode,StateProvinceCode,StreetAddress,CityTown,ZipPostalCode")] ApplicantProfiles applicantProfiles, Guid id) { applicantProfiles.Login = id; if (ModelState.IsValid) { applicantProfiles.Id = Guid.NewGuid(); _context.Add(applicantProfiles); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } ViewData["CountryCode"] = new SelectList(_context.SystemCountryCodes, "Code", "Code", applicantProfiles.CountryCode); ViewData["Login"] = new SelectList(_context.SecurityLogins, "Id", "Login", applicantProfiles.Login); return(View(applicantProfiles)); }
public async Task <IActionResult> Create(ApplicantJobApplications applicantJobApplications, Guid Applicant, Guid Job) { applicantJobApplications.Applicant = Applicant; applicantJobApplications.Job = Job; if (ModelState.IsValid) { applicantJobApplications.Id = Guid.NewGuid(); _context.Add(applicantJobApplications); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } ViewData["Applicant"] = new SelectList(_context.ApplicantProfiles, "Id", "Id", applicantJobApplications.Applicant); ViewData["Job"] = new SelectList(_context.CompanyJobs, "Id", "Id", applicantJobApplications.Job); return(View(applicantJobApplications)); }