Hi,
I am developing a MVC Web Application, where i am saving the form data to the DB. After saving the form it clears all the fields in the form. How do i repopulate just saved data to the form. Here is my code for saving to DB.
[HttpPost]
public JsonResult Save(ViewModel.NewMarkViewModel mark)
{
using (var dbContext = new Model.TCPContext())
{
dbContext.Entry(mark.KCInfo).State = System.Data.EntityState.Added;
dbContext.SaveChanges();
}
}
Please advise. Thanks
Go to the complete details ...