title: Use variable from controller in view ASP.NET MVC4
body: <p>There is a model in my project    </p>
  
  <pre><code>using System;
  
  namespace Argussite.SupplierServices.ViewModels
  {
    public class UsersPage
    {
      public Guid SupplierId { get; set; }
      public string SupplierFullName { get; set; }
      public bool ActionsAllowed { get; set; }
    }
  }
  </code></pre>
  
  <p>I use my model in controller and set properties   </p>
  
  <pre><code>public ActionResult Index(Guid id)
      {
          var supplierOfUser = Context.Suppliers.AsNoTracking()
              //.Include(e =&gt; e.Supplier)
              .FirstOrDefault(e =&gt; e.Id == id);
  
          string SupplierId = id.ToString();
          string SupplierFullName = supplierOfUser.FullName.ToString();
          bool ActionsAllowed = supplierOfUser.Active;
  
          return View();
      }
  </code></pre>
  
  <p>and then I need to use that in view, but I don't know how to get my properties in the view?</p>