Q:

importing a c# class in a cshtml view

Is this possible? Iterating through a list, I cannot use its actual class to be used as a variable type when storing data in a for each loop.
@using MyFirstWebApplication.Models.Student
@model IEnumerable<MyFirstWebApplication.Models.Student>
@{
    ViewBag.Title = "Title";
}

<h2>This is a heading</h2>

@foreach (Student student in Model)
{
    <h2>Student Name: @student.FirstName @student.LastName</h2>
}

Code will compile only when the variable type in the foreach loop is 'var'

A:

Your @using statement looks incorrect. Assuming the full name of the class is MyFirstWebApplication.Models.Student, the using statement should be:
@using MyFirstWebApplication.Models

