public ActionResult Detail(int id) { var career = db.Career.Find(id); CareerSummaryViewModel careerDetail = new CareerSummaryViewModel { JobTitle = career.JobTitle, Location = career.Location, Experience = career.Experience, Education = career.Education, WorkType = career.WorkType, VacancyNubmer = career.VacancyNubmer, CreateDate = career.CreateDate.ToString(), Description = career.Description, Qualification = career.Qualification }; return View(careerDetail); }
// GET: Career public ActionResult Index() { var career = db.Career.ToList(); List<CareerSummaryViewModel> career_sm = new List<CareerSummaryViewModel>(); foreach (var item in career) { CareerSummaryViewModel _career = new CareerSummaryViewModel { ID = item.ID, JobTitle = item.JobTitle, Location = item.Location, Experience = item.Experience, VacancyNubmer = item.VacancyNubmer, CreateDate = item.CreateDate.ToString(), }; career_sm.Add(_career); } return View(career_sm); }
//public ActionResult PresidentDetailDeleteConfirm(int id) //{ // PresidentDetail presidentDetail = db.PresidentDetail.Find(id); // PresidentDetailEditViewModel _presidentDetail = new PresidentDetailEditViewModel // { // Name = presidentDetail.Name, // Position = presidentDetail.Position, // Description = presidentDetail.Description, // //Image = image, // Facebook = presidentDetail.Facebook, // Twitter = presidentDetail.Twitter, // Google = presidentDetail.Google, // LinkedIn = presidentDetail.LinkedIn, // Email = presidentDetail.Email, // Skype = presidentDetail.Skype, // ImagePath = presidentDetail.ImageUrl // }; // return View(_presidentDetail); //} //public ActionResult PresidentDetailDelete(PresidentDetailEditViewModel delete_PresidentDetail) //{ // var presidentDetail = db.PresidentDetail.Find(delete_PresidentDetail.ID); // db.PresidentDetail.Remove(presidentDetail); // db.SaveChanges(); // return RedirectToAction("PresidentDetail"); //} //Honor // Organization #endregion #region// Career public ActionResult Career() { var career = db.Career.ToList(); List<CareerSummaryViewModel> career_sm = new List<CareerSummaryViewModel>(); foreach (var item in career) { CareerSummaryViewModel _career = new CareerSummaryViewModel { ID = item.ID, JobTitle = item.JobTitle, //CategoryName = item.CategoryName, Location = item.Location, Experience = item.Experience, Education = item.Education, WorkType = item.WorkType, VacancyNubmer = item.VacancyNubmer, CreateDate = item.CreateDate.ToString(), Description = item.Description, Qualification = item.Qualification }; career_sm.Add(_career); } return View(career_sm); }