http://www.c-sharpcorner.com/UploadFile/4d9083/creating-insert-update-and-delete-application-in-mvc-4-using/
I have got a runing code from the above url but it is giving an error whet=n I try to generate alist from the database using a for loop. But Insert has worked.