How to add code to an MVC cshtml file view
<p>really new to MVC and not sure how i would get my variable 'UsersFullName' from the code behind class file to the view.  With aspx and aspx.cs i would have done this:</p>

<p>index.aspx.cs:</p>

<pre><code>using System.DirectoryServices.AccountManagement;

namespace TeamRequestForm.Controllers
{
    public class AddTeamController : Controller
    {
        // GET: AddTeam
        public ActionResult Index()
        {
            return View();
        }
        private string usersFullName = UserPrincipal.Current.DisplayName;
        public string UsersFullName { get { return usersFullName; } }
    }
}
</code></pre>

<p>index.aspx:</p>

<pre><code>&lt;input type="text" value="&lt;%=UsersFullName%&gt;" name="changeOriginator" id="changeOriginator"&gt;
</code></pre>

<p>How can I do the same in a view? Many thanks in advance.</p>