Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- namespace WebApplication2.Controllers
- {
- public class HomeController : Controller
- {
- // GET: Home
- public ActionResult Index()
- {
- return View();
- }
- // GET: Home
- public ActionResult NumInfo(float num)
- {
- return View(num); //passing model (model is object)
- }
- public ActionResult StringInfo(string str)
- {
- str = "Default";
- return View(model:str); //passing model (model is object)
- }
- }
- }
Add Comment
Please, Sign In to add comment