using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Vidly1.Models;
namespace Vidly1.Controllers
{
public class MoviesController : Controller
{
// GET: Movies
public ActionResult Random()
{
var movie = new Movie() { Name = "Shrek!" };
//return View(movie);
//return Content("Hello world");
//return HttpNotFound();
//return new EmptyResult();
return RedirectToAction("Index", "Home", new { page= 1, sortBy = "name" });
}
}
}
在上面的代码中,当我运行应用程序时,我没有看到url中的参数。我是.Net的新手,我们将不胜感激。
谢谢:)