Less first understand rounting module in MVC as shown below diagram-


 

For more information on MVC Routing  refer -ASP.NET MVC Routing

Consider this situation where if logged in user has admin right then you want to redirect him to Admin if user is not admin redirect to Listing (index)page.


Here is code snippet to do this:



        [HttpPost]
        [ValidateAntiForgeryToken]
        public ActionResult Edit(ITEM item)
        {
            if (ModelState.IsValid)
            {
                db.Entry(item).State = EntityState.Modified;
                db.SaveChanges();
                if (User.IsInRole("Admin"))
                {
                    return RedirectToAction("Admin");
                }
                else
                {
                    return RedirectToAction("Index");
                }
            }
            return View(item);
        }