Skip to content

Commit

Permalink
Adds optional param to TeachingEventAddAttendee
Browse files Browse the repository at this point in the history
- Adds `Channel_id` to the model
  • Loading branch information
ekumachidi committed Dec 15, 2023
1 parent 58c951d commit 197a302
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ public class TeachingEventAddAttendee

[SwaggerSchema(WriteOnly = true)]
public Guid? EventId { get; set; }

[SwaggerSchema(WriteOnly = true)]
public int? ChannelId { get; set; }

[SwaggerSchema(WriteOnly = true)]
public Guid? AcceptedPolicyId { get; set; }
public Guid? PreferredTeachingSubjectId { get; set; }
Expand Down Expand Up @@ -136,7 +140,7 @@ private void ConfigureChannel(Candidate candidate)
{
if (CandidateId == null)
{
candidate.ChannelId = (int?)Candidate.Channel.Event;
candidate.ChannelId = ChannelId ?? (int?)Candidate.Channel.Event;
}
}

Expand Down

0 comments on commit 197a302

Please sign in to comment.