public ActionResult Index()
		{
			var model = new IndexModel
			            	{
			            		Cultures = _repository.GetAvailableLanguages(),
			            		Prompts = _repository.GetAllPrompts(CultureInfo.CurrentUICulture).Select(p => new ViewPrompt(p))
			            	};
			return View(model);
		}
 public ActionResult CreateLanguage(string lang)
 {
     try
     {
         var culture = new CultureInfo(lang);
         _repository.CreateLanguage(culture, DefaultUICulture.Value);
         return RedirectToAction("Index", new { lang });
     }
     catch (Exception err)
     {
         ModelState.AddModelError("", err.Message);
         var allPrompts = _repository.GetAllPrompts(CultureInfo.CurrentUICulture, DefaultUICulture.Value,
                                                    new SearchFilter());
         var model = new IndexModel
                         {
                             Cultures = _repository.GetAvailableLanguages(),
                             Prompts = allPrompts.Select(p => new ViewPrompt(p))
                         };
         return View("Index", model);
     }
 }
        public ActionResult Index(FilterModel filter = null)
        {
            if (Request.HttpMethod == "POST" && filter != null)
            {
                TableFilter = filter.TableFilter;
                OnlyNotTranslated = filter.OnlyNotTranslated;
            }

            var sf = new SearchFilter();
            if (TableFilter != null)
                sf.Path = TableFilter;
            if (OnlyNotTranslated)
                sf.OnlyNotTranslated = true;
            var model = new IndexModel
                        {
                            Cultures = _repository.GetAvailableLanguages(),
                            Prompts =
                                _repository.GetAllPrompts(CultureInfo.CurrentUICulture, DefaultUICulture.Value,
                                                          sf).Select(p => new ViewPrompt(p)),
                            OnlyNotTranslated = OnlyNotTranslated,
                            TableFilter = TableFilter
                        };
            return View(model);
        }