public ActionResult Detail(int id) { var recruitment = db.Recruitments.Find(id); ViewBag.RecruitmentInfo = systemInfoDAO.GetRecruitmentInfo(); return(View(recruitment)); }
// GET: Admin/SystemInfo public ActionResult Index() { var socialLinks = systemInfoDAO.GetSocialLink(); var contactInfo = systemInfoDAO.GetContactInfo(); var model = new SystemInfoViewModel() { Logo = systemInfoDAO.GetLogo(), Brand = systemInfoDAO.GetBrand(), RecruitmentInfo = systemInfoDAO.GetRecruitmentInfo(), Facebook = socialLinks.Facebook, Linkedin = socialLinks.Linkedin, Youtube = socialLinks.Youtube, Hotline = contactInfo.Hotline, Email = contactInfo.Email, Website = contactInfo.Website, CompanyFullName = contactInfo.CompanyFullName, Headquater = contactInfo.Headquater }; return(View(model)); }