Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to iterate loop and save a list values in database using the entity framwork.

In list having multiple Questions recods find by QuestionId and save according the selected answer value.
C#
[HttpPost]
        public ActionResult Index(List QuestionsModel model)
        {
          
            return View();
        }
Posted
Updated 27-Nov-15 21:49pm
v7

1 solution

What have you tried?[^]

And as I assume, this a homework; it won't be entertained here.
If you expect us to do your homework, that's not going to work. There's a pretty good reason behind this: "You won't be learn anything, if you expect others do your work for you".

You can try something on your own at first and when you stuck anywhere, anyone from here would do his/her best to help you out. But don't directly ask for the source code.

Read the Code Project Quick Answers FAQ[^] first :)

-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900