I have one of the tables with the attributes: id, class name, student name. I want to enter data 1 class name with many student names with 2 textboxes. 1 Textbox is used for class names, 1 textbox for student names. For the student's name textbox, I enter names by separating them with "," each name. How to overcome this problem? Are there other ways to fix this problem? thanks.
Model Classroom.cs
public partial class Classroom
{
public int id { get; set; }
public string class_name { get; set; }
public string student_name { get; set; }
}
List<Classroom>defined in a view-model that will hold the values.