Guest User

Guest User

  • Tech Writer
  • 2.1k
  • 471.8k

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>

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

// Controller side

I need help here


Answers (6)