// POST: Languages/Edit public ActionResult Edit(Language lang) { var lp = new LanguageProcess(); lp.Edit(lang); return(RedirectToAction("Index")); }
// GET: Languages/Delete public ActionResult Delete(int id) { var lp = new LanguageProcess(); lp.Delete(id); return(RedirectToAction("Index")); }
// GET: Languages/Edit public ActionResult Edit(int id) { var lp = new LanguageProcess(); var lang = lp.Find(id); return(View(lang)); }
// GET: Languages/Language public ActionResult Index() { var lp = new LanguageProcess(); var lista = lp.SelectList(); return(View(lista)); }
// POST: Languages/Create public ActionResult Create(Language lang) { var lp = new LanguageProcess(); lp.Insert(lang); return(RedirectToAction("Index")); }
/// Esta abstracciones están acá si quieren poner los datos en el servicio REST #region Abstracciones de Datos private static Language ObtenerIdioma(string languageCulture) { LanguageProcess langBus = new LanguageProcess(); return(langBus.FindByLang(languageCulture)); //LanguageBusiness langBus = new LanguageBusiness(); //return langBus.FindByLangCulture(languageCulture); }
// GET: LocaleStringResorces/Create public ActionResult Create() { var lp = new LanguageProcess(); var listaLanguages = lp.SelectList(); ViewData["Language"] = listaLanguages; var lrp = new LocaleResourceKeyProcess(); var listaLocRes = lrp.SelectList(); ViewData["LocRes"] = listaLocRes; return(View()); }
// GET: LocaleStringResorces/Edit public ActionResult Edit(int id) { var lsp = new LocaleStringResourceProcess(); var locstr = lsp.Find(id); var lp = new LanguageProcess(); var listaLanguages = lp.SelectList(); ViewData["Language"] = listaLanguages; var lrp = new LocaleResourceKeyProcess(); var listaLocRes = lrp.SelectList(); ViewData["LocRes"] = listaLocRes; return(View(locstr)); }
// GET: LocaleStringResorces/Details public ActionResult Details(int id) { var lsp = new LocaleStringResourceProcess(); var locstr = lsp.Find(id); var lp = new LanguageProcess(); var descLanguage = lp.Find(locstr.Language_Id); ViewData["Language"] = descLanguage.Name; var lrp = new LocaleResourceKeyProcess(); var descLocRes = lrp.Find(locstr.LocaleResourceKey_Id); ViewData["LocRes"] = descLocRes.Name; return(View(locstr)); }
// GET: LocaleStringResorces/LocaleStringResource public ActionResult Index() { var lsp = new LocaleStringResourceProcess(); var lista = lsp.SelectList(); var lp = new LanguageProcess(); var listaLanguages = lp.SelectList(); ViewData["Language"] = listaLanguages; var lrp = new LocaleResourceKeyProcess(); var listaLocRes = lrp.SelectList(); ViewData["LocRes"] = listaLocRes; return(View(lista)); }
/// <summary> /// Add text processor, called before value actually get set /// </summary> /// <param name="process">Delegate</param> public void SetupLanguageProcesor(LanguageProcess process) { languageProcess = process; }