public ActionResult Index()
        {
            string CurrentLang = CurrentLanguageCode.ToString().ToUpper();

            ViewBag.Lang = CurrentLang;
            Contact contact = db.Contacts.FirstOrDefault();

            return(View(contact));
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            string CurrentLang = CurrentLanguageCode.ToString().ToUpper();

            ViewBag.Lang = CurrentLang;
            About aboutus = db.Abouts.Where(w => w.Language.Name == CurrentLang).FirstOrDefault();

            return(View(aboutus));
        }
Ejemplo n.º 3
0
        public ActionResult Search(int?LocationId, int?CategoryId, string Text)
        {
            string CurrentLang = CurrentLanguageCode.ToString().ToUpper();

            ViewBag.Lang = CurrentLang;
            List <JobLang> list = db.JobLangs.Where(l => l.Status == true && l.Job.CategoryId == CategoryId && l.Job.Location1.Id == LocationId && l.Language.Name == CurrentLang && l.Title.Contains(Text))
                                  .ToList();

            return(View(list));
        }
Ejemplo n.º 4
0
        public ActionResult Index()
        {
            string CurrentLang = CurrentLanguageCode.ToString().ToUpper();

            ViewBag.Lang = CurrentLang;
            ViewModelService data = new ViewModelService();

            data.service         = db.Services.Where(l => l.Language.Name == CurrentLang).FirstOrDefault();
            data.serviceElements = db.ServiceElements.Where(l => l.Language.Name == CurrentLang).ToList();
            return(View(data));
        }
Ejemplo n.º 5
0
        public ActionResult Index()
        {
            string CurrentLang = CurrentLanguageCode.ToString().ToUpper();

            ViewBag.Lang = CurrentLang;
            ViewmodelHome data = new ViewmodelHome();

            data.Jobs          = db.JobLangs.Where(w => w.Language.Name == CurrentLang && w.Job.Status == true).ToList();
            data.Locations     = db.Locations.Where(w => w.Status == true).ToList();
            data.CategoryLangs = db.CategoryLangs.Where(w => w.Status == true && w.Language.Name == CurrentLang).ToList();
            data.Companies     = db.Companies.Where(w => w.Status == true).ToList();
            return(View(data));
        }
        public ActionResult Index(int id)
        {
            string CurrentLang = CurrentLanguageCode.ToString().ToUpper();

            ViewBag.Lang = CurrentLang;
            ViewModelJobDetail datas = new ViewModelJobDetail();

            datas.Vacancy   = db.JobLangs.FirstOrDefault(w => w.Language.Name == CurrentLang && w.Job.Status == true && w.JobId == id);
            datas.Vacancies = db.JobLangs.Where(w => w.Language.Name == CurrentLang && w.Job.Status == true && w.Job.CategoryId == datas.Vacancy.Job.CategoryId && w.JobId != id).OrderByDescending(o => o.Id).Take(3).ToList();
            if (datas.Vacancy != null)
            {
                return(View(datas));
            }
            return(RedirectToAction("Index", "Home", new { Area = "", lang = CurrentLang }));
        }