title: How to assign a value to a List<string> inside a model
body: <p>My model is like is </p>
  
  <pre><code>public class MovieListModel
  {        
      public int Id { get; set; }
      public List&lt;string&gt; FilePathList { get; set; }
      public string FileName { get; set; }
      public string Extension { get; set; }
      public string Size { get; set; }
      public DateTime CreatedTime { get; set; }
      public DateTime ModifiedTime { get; set; }
  }
  </code></pre>
  
  <p>I Need to add assign value to the above model but the problem is adding the value to the list of string that is inside the model, List FilePathList.   I need something like this,</p>
  
  <pre><code>var obj = new MovieListModel()
   {
      FileName = fi.Name,
      FilePathList = , //  Need to add value here.
      Count = 1,
      Extension = fi.Extension,
      Size = Helper.FormatBytes(fi.Length),
      CreatedTime = fi.CreationTime,
      ModifiedTime = File.GetLastWriteTime(item)
  };
  movieList.Add(obj);
  </code></pre>