Gcobani Mkontwana

Gcobani Mkontwana

  • 1k
  • 1.4k
  • 167k

Save local values to database using asp.net mvc5?

Nov 12 2021 5:48 AM

Hi Team

I want to save local values to my local database, anyone can help. I am struggling to have a logic from the Controller side. Let me share code

// Model side

public class Incident_NameDropDown
    public string Title { get; set; }
    public string Description { get; set; }

// View side

<div class="form-group">
    <input asp-for="Title" id="Title" type="text" class="form-control" value="" />

<div class="form-group">
    <input asp-for="Description" id="Description" type="text" class="form-control" value="" />

// Controller side

I need help here

Answers (6)