// GET: /Application/ public ActionResult Index(int jobId = 1) { var job = new Job() { JobId = jobId, Position = "Sales Associate", Description = "Customer Service, Stocking, Cashier", FullPartTime = "Part-time", SalaryRange = "$8.00 - $10.00 hourly", QuestionnaireId = 1, HoursId = 1 }; var applicant = new Applicant(); var applicantQuestionAnswer = new ApplicantQuestionAnswer(); var educations = new List<Education>(); var jobHistories = new List<JobHistory>(); var hour = new Hour(); var references = new List<Reference>(); var user = new User(); var personalInfo = new PersonalInfo(); var viewModel = new ApplicationViewModel() { Application = new Models.EntityModels.Application() { DateCreated = DateTime.Now.Date, JobId = jobId, }, Job = job, Applicant = applicant, ApplicantQuestionAnswer = applicantQuestionAnswer, Education = educations, JobHistory = jobHistories, Hour = hour, Reference = references, User = user, PersonalInfo = personalInfo }; return View(viewModel); }
public JsonResult SaveApplicationDetails(ApplicationViewModel viewModel) { // TODO: Save logic goes here. return Json(new { }); }