locked
Show Controller and view name according to language RRS feed

  • Question

  • User1991482975 posted

    hi, my web site is multilingual :

    en

    fr

    it

    es

    i usially crate a controller which have a common sense to all the languages...

    but now i need to show different controller for each language.. 

    Exemple i have :

     public class MagazineController : Controller
        {
            private ApplicationDbContext db = new ApplicationDbContext();
    
            public ActionResult Page()
            {
                //ViewBag.Message = "This page does not exist";
                return View();
            }

    The results is :

    mywebsite/Magazine/Page/

    what i need is

    mywebsite/Riivsta/Pagina/

    mywebsite/Journal/Article/

    mywebsite/Rivistas/Pagionas/

    how to do?

    Sunday, September 20, 2020 11:45 AM

All replies