title: Assign one model value to another
body: <p>I have a model DropDownConfiguration which is fetching values from database and populating the dropdown list.</p>
  
  <p>Model:</p>
  
  <pre><code>public class DropDownConfiguration
      {
          public int ID { get; set; }
          public int Quarter { get; set; }
          public int Year { get; set; }
          public string Project { get; set; }
          public string LineID { get; set; }
  
      }
  </code></pre>
  
  <p>html:</p>
  
  <pre><code> @Html.DropDownList("Project", new SelectList(Model.dropConfig, "ID", "Project"), "-- Select Project --", new { required = true, @class = "form-control" })
  </code></pre>
  
  <p>I have another model DetailsConfiguration which has all the fields which need be saved into the database. </p>
  
  <pre><code> public class DetailsConfiguration
      {
  
          public int Quarter { get; set; }
          public int Year { get; set; }
          public string Project { get; set; }
          public string ItemModel { get; set; }
  
      }
  </code></pre>
  
  <p>Controller HttpPost:</p>
  
  <pre><code>  [ActionName("DetailsForm")]
          [HttpPost]
  
          public ActionResult DetailsForm(DetailsViewModel model, FormCollection form)
          {
  
              DetailsConfiguration detailsConfig = new DetailsConfiguration();
              detailsConfig.Quarter = Convert.ToInt32(form["Quarter"]);
              detailsConfig.Year = Convert.ToInt32(form["Year"]);
              detailsConfig.Project = model.detailsConfig.Project;
              detailsConfig.ItemModel = model.detailsConfig.ItemModel;  
              detailsConfig.LineID = model.detailsConfig.LineID;
  
              floorService.SaveDetails(detailsConfig);
  
              ModelState.Clear();
              ViewBag.message = "Success";
              return View("DetailsForm");
  
          }
  </code></pre>
  
  <p>Is there anyway to do something like:</p>
  
  <pre><code>model.detailsConfig.Project = model.dropConfig.Project
  </code></pre>
  
  <p>I need the selection of Project to be posted back to database through DetailsConfiguration.</p>