Ejemplo n.º 1
0
        public ActionResult Detail(int id)
        {
            var recruitment = db.Recruitments.Find(id);

            ViewBag.RecruitmentInfo = systemInfoDAO.GetRecruitmentInfo();
            return(View(recruitment));
        }
Ejemplo n.º 2
0
        // 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));
        }