public ActionResult Help()
        {
            switch (LanguageHelper.GetCurrentLanguage())
            {
            case "ru":
                return(View("Help"));

            default:
                return(View("HelpEn"));
            }
        }
Example #2
0
        public ActionResult About()
        {
            var lang = LanguageHelper.GetCurrentLanguage();

            if (lang == Language.BG)
            {
                ViewBag.Message = "Language is Bulgarian";
            }
            else if (lang == Language.EN)
            {
                ViewBag.Message = "Language is English";
            }

            return(View());
        }
        public ActionResult RightHelpsPartial()
        {
            List <HelpDataModels> models = new List <HelpDataModels>();

            string[]       path       = HttpContext.Request.RawUrl.Split('/');
            string         URL        = path.Length > 1 ? path[1] : "";
            string         lang       = LanguageHelper.GetCurrentLanguage();
            int            LanguageId = (lang == "ru" ? 1 : 2);
            HelpDataModels model      = new HelpDataModels();
            var            queryHelp  = _HelpDataService.GetHelpInfo(URL, LanguageId);

            foreach (var item in queryHelp)
            {
                model.FromEntity(item);
                models.Add(model);
            }
            return(PartialView(models));
        }
        public ActionResult Index(string value)
        {
            /*if (value != "1")
             * {
             *
             *  if (User.IsInRole("Doctor"))
             *  {
             *      return RedirectToAction("Index", "Schedule");
             *  }
             * }*/

            switch (LanguageHelper.GetCurrentLanguage())
            {
            case "ru":
                return(View("Index"));

            default:
                return(View("IndexEn"));
            }
        }