Skip to content
Loading
  
  •   
  • class="form-group">  
  •     for="Date" id="Date" type="Date" class="form-control" value="" />  
  •   
  • On Concroller  
  •   
  •  public IActionResult Save(Incident_NameDropDown model)  
  •      {  
  •       using (Dbcontext db = new Dbcontext())  
  •             {  
  •                 tableName tbObj = new tableName  
  •                 {  
  •                     Title = model.Title,  
  •                     Description = model.Description,  
  •                     Description = model.Description,  
  •                 };  
  •                 db.tableName.Add(tbObj);  
  •                 db.SaveChanges();  
  •             }  
  •         }  
  • +1