diff --git a/TimeTable_App/Models/SessionsSubFormModel.cs b/TimeTable_App/Models/SessionsSubFormModel.cs index 5ba4bb9..0b98d00 100644 --- a/TimeTable_App/Models/SessionsSubFormModel.cs +++ b/TimeTable_App/Models/SessionsSubFormModel.cs @@ -34,13 +34,7 @@ public class SessionsSubFormModel [MaxLength(50)] public string Tags { get; set; } [Required] - [MaxLength(200)] - public string TagsList { get; set; } - [Required] - public int GroupId { get; set; } - [Required] - [MaxLength(50)] - public string GroupName { get; set; } + public string GroupId { get; set; } [Required] [MaxLength(50)] public string SubjectCode { get; set; } @@ -74,6 +68,10 @@ public dynamic GetFormData(TimeTableDbContext _dbContext, string type) { return _dbContext.Subjects.ToList(); } + else if (type == "Session") + { + return _dbContext.Sessions.ToList(); + } return null; }