title: How do I include pictures into my Razor Page project?
body: <p>I am making a project that is supposed to act as a movie rental website. I need to have cover pages for all of the movies in my selection. How would I go about doing this in my project? I would prefer HTML if I could just because i'm the most comfortable with that. I am using Razor Pages .NET CORE and my language is C#. I also have all the images I need stored into a file already in the program so that is done. Here is my code:</p>
  <p>for my models class (this is only showing the model for cover photo):</p>
  <pre><code>[Display(Name = &quot;Cover Photo&quot;)]
      [Column(TypeName = &quot;varchar(128)&quot;)]
      public string Cover_Photo { get; set; }
  </code></pre>
  <p>Here is the cshtml(I included everything here):</p>
  <pre><code> &lt;p&gt;
      &lt;a asp-page=&quot;Create&quot;&gt;Create New&lt;/a&gt;
  &lt;/p&gt;
  &lt;table class=&quot;table&quot;&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;
                  @Html.DisplayNameFor(model =&gt; model.Movie[0].Title)
              &lt;/th&gt;
              &lt;th&gt;
                  @Html.DisplayNameFor(model =&gt; model.Movie[0].RatingId)
              &lt;/th&gt;
              &lt;th&gt;
                  @Html.DisplayNameFor(model =&gt; model.Movie[0].Description)
              &lt;/th&gt;
          
              &lt;th&gt;
                  @Html.DisplayNameFor(model =&gt; model.Movie[0].Length)
              &lt;/th&gt;
              &lt;th&gt;
                  @Html.DisplayNameFor(model =&gt; model.Movie[0].GenreId)
              &lt;/th&gt;
              &lt;th&gt;
                  DVD / BluRay
              &lt;/th&gt;
              &lt;th&gt;
                  @Html.DisplayNameFor(model =&gt; model.Movie[0].Cover_Photo)
              &lt;/th&gt;
              &lt;th&gt;
                  @Html.DisplayNameFor(model =&gt; model.Movie[0].Release_Date)
              &lt;/th&gt;
              &lt;th&gt;&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
  @foreach (var item in Model.Movie) {
          &lt;tr&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.Title)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.Rating.Name)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.Description)
              &lt;/td&gt;
             
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.Length)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.Genre.Name)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.Is_Dvd) /  @Html.DisplayFor(modelItem =&gt; item.Is_BluRay)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.Cover_Photo)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.Release_Date)
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;a asp-page=&quot;./Edit&quot; asp-route-id=&quot;@item.MovieId&quot;&gt;Edit&lt;/a&gt; |
                  &lt;a asp-page=&quot;./Details&quot; asp-route-id=&quot;@item.MovieId&quot;&gt;Details&lt;/a&gt; |
                  &lt;a asp-page=&quot;./Delete&quot; asp-route-id=&quot;@item.MovieId&quot;&gt;Delete&lt;/a&gt; |
                  &lt;a asp-page=&quot;../Reviews/Create&quot; asp-route-id=&quot;@item.MovieId&quot;&gt;Add Review&lt;/a&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
  }
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  <p>I also have a cshtml.cs file but im not sure what that is for or what goes in there. Thank you! all help is appricated!</p>