public void AddContent(string _subject_id, string _total_hours, string _ctr_type, string _employee) { string S; ContentsCount++; Edu_Plan_Content _content = new Edu_Plan_Content(); // Console.WriteLine("Введите ИД предмета"); _content.subject_id = _subject_id; // Console.WriteLine("Введите количество часов предмета"); //S = Console.ReadLine(); _content.total_hours = Convert.ToInt32(_total_hours); _content.ControlType = _ctr_type; _content.Employee = _employee; _content.EduPlanUID = UId; // Заменить на запрос добавления в БД //Program.EDU_plan_Contents.Add(_content); }
public void AddContent(Edu_Plan_Content _content) { _content.EduPlanUID = UId; //Program.EDU_plan_Contents.Add(_content); }