title: Add new value while Create on Scaffold MVC
body: <p><br></p>
  
  <p>I have a question. I am new on ASP.NET MVC Code First.<br>
  I am creating a simple CRUD using Scaffold MVC.<br></p>
  
  <p>My Model:<br></p>
  
  <pre><code>public class Manufacture
  {
      [Key]
      public int ManufactureID { get; set; }
  
      [Required]
      [Column("Manufacture", TypeName = "varchar")]
      [MaxLength(25)]
      [Display(Name = "Manufacture")]
      public string ManufactureCode { get; set; }
  
      [Column("ManufactureDescription", TypeName = "varchar")]
      [MaxLength(50)]
      [Display(Name = "Description")]
      public string ManufactureDescription { get; set; }
  
      [Column("IsActive", TypeName = "bit")]
      [Display(Name = "Active?")]
      public bool IsActive { get; set; }
  
      public DateTime CreatedDateTime { get; set; }
  }
  </code></pre>
  
  <p>My Controller: <br></p>
  
  <pre><code>public ActionResult ManufactureCreate()
      {
          return View();
      }
  
      [HttpPost]
      [ValidateAntiForgeryToken]
      public ActionResult ManufactureCreate([Bind(Include = "ManufactureID,ManufactureCode,ManufactureDescription,IsActive,CreatedDateTime")] Manufacture manufacture)
      {
          if (ModelState.IsValid)
          {
              if (db.Manufactures.Any(ac =&gt; ac.ManufactureCode.Equals(manufacture.ManufactureCode)))
               {
                  return View();
              }
              else
              {
                  db.Manufactures.Add(manufacture);
                  db.SaveChanges();
                  return RedirectToAction("ManufactureCreate");
              }
          }
          return View(manufacture);
      }
  </code></pre>
  
  <p>I want to add a value on "CreatedDateTime" field using current DateTime. When User click the "Save" button on the View. "CreatedDateTime" field will be filled by current DateTime.<br></p>
  
  <p>How can I do that?<br>
  Please advise.<br>
  Thank you.</p>