Skip to content
Loading
How to save List value to a database in ActionResult?
+1
  • Please try this https://stackoverflow.com/questions/37973559/how-to-save-changes-in-a-db-for-c-sharp
    What is the error you are getting with your code?  
    +1
  • yes, so that each course can be saved to the db, right now i am trying to do this logic.
     
    1. var courseList = cb.courses.ToList();  
    2. cb.courses.Add(regCourseView....);   
    +1
  • Jenith Thakkar
    Do you want to store list of courses or single course?
    +1