Exemplo n.º 1
0
        // POST: LocaleResourceKeys/Edit
        public ActionResult Edit(LocaleResourceKey locres)
        {
            var lrp = new LocaleResourceKeyProcess();

            lrp.Edit(locres);
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        // GET: LocaleResourceKeys/Edit
        public ActionResult Edit(int id)
        {
            var lrp    = new LocaleResourceKeyProcess();
            var locres = lrp.Find(id);

            return(View(locres));
        }
Exemplo n.º 3
0
        // GET: LocaleResourceKeys/Delete
        public ActionResult Delete(int id)
        {
            var lrp = new LocaleResourceKeyProcess();

            lrp.Delete(id);
            return(RedirectToAction("Index"));
        }
Exemplo n.º 4
0
        // GET: LocaleResourceKeys/LocaleResourceKey
        public ActionResult Index()
        {
            var lrp   = new LocaleResourceKeyProcess();
            var lista = lrp.SelectList();

            return(View(lista));
        }
Exemplo n.º 5
0
        // POST: LocaleResourceKeys/Create
        public ActionResult Create(LocaleResourceKey locres)
        {
            locres.DateAdded = DateTime.Now;
            var lrp = new LocaleResourceKeyProcess();

            lrp.Insert(locres);
            return(RedirectToAction("Index"));
        }
Exemplo n.º 6
0
        private static List <LocaleResourceKey> ObtenerKeys()
        {
            LocaleResourceKeyProcess locresPro = new LocaleResourceKeyProcess();

            return(locresPro.SelectList());

            //LocaleResourceKeyBusiness locresBus = new LocaleResourceKeyBusiness();
            //return locresBus.All();
        }
        // 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));
        }