namespace Hotic.Models
{
public class Student
public string Name { get; set; }
}
@{
var date = DateTime.Now.ToShortDateString();
string message = "Hello Class!";
int age = 27;
char name = 'L';
float floatvar = 56.2F;
double doublevar = 123.56;
bool boolvar = true;
@:Today's date is: @date <br/>
@message <br/>
@name <br/>
@floatvar <br/>
@doublevar <br/>
@boolvar <br/>
using System;
using System.Web.Mvc;
using System.Collections.Generic;
using Hotic.Models;
namespace Hotic.Controllers
public class StudentController: Controller
// GET: Student
public ActionResult Index()
var StudentList = new List<Student>
new Student() { Name = "I am Van Les P. Hotic"} ,
};
return View(StudentList);