Skip to content

Commit

Permalink
Change sub form model
Browse files Browse the repository at this point in the history
  • Loading branch information
KusalPriyanka committed Oct 2, 2020
1 parent aeae7b7 commit cd4c06a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions TimeTable_App/Models/SessionsSubFormModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit cd4c06a

Please sign in to comment.