Пример #1
0
 public PartialViewResult Footer()
 {
     ViewBag.Brand        = systemInfoDAO.GetBrand();
     ViewBag.Logo         = systemInfoDAO.GetLogo();
     ViewBag.BottomMenus  = menuDAO.GetBottomMenus();
     ViewBag.ContactInfo  = systemInfoDAO.GetContactInfo();
     ViewBag.SocialLinks  = systemInfoDAO.GetSocialLink();
     ViewBag.HotNews      = postDAO.GetAll(1, 10).Skip(0).Take(6).ToList();
     ViewBag.ContactInfo  = systemInfoDAO.GetContactInfo();
     ViewBag.Recruitments = recruitmentDAO.GetAllWithUser().Skip(0).Take(3).ToList();
     return(PartialView("Footer"));
 }
Пример #2
0
        // GET: Admin/Recruitment
        public ActionResult Index(string searchString = null)
        {
            List <Recruitment> recruitments;

            if (string.IsNullOrEmpty(searchString))
            {
                recruitments = recruitmentDAO.GetAllWithUser();
            }
            else
            {
                recruitments = recruitmentDAO.Search(searchString);
            }

            return(View(recruitments));
        }