6
Answers

Save local values to database using asp.net mvc5?

Guest User

Guest User

3y
511
1

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)