File tree Expand file tree Collapse file tree
EventFlow.Application/Commands
EventFlow.Presentation/Controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ namespace EventFlow.Application.Commands;
33public class EventCommand
44{
55 public int Id { get ; private set ; }
6- public string Title { get ; set ; }
6+ public required string Title { get ; set ; }
77 public string ? Description { get ; set ; }
88 public DateTime Date { get ; set ; }
9- public string Location { get ; set ; }
9+ public required string Location { get ; set ; }
1010 public int OrganizerId { get ; set ; }
1111}
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ namespace EventFlow.Application.Commands;
22
33public class OrganizerCommand
44{
5- public string Name { get ; set ; }
6- public string Email { get ; set ; }
5+ public required string Name { get ; set ; }
6+ public required string Email { get ; set ; }
77}
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ namespace EventFlow.Application.Commands;
44
55public class SpeakerCommand
66{
7- public string Name { get ; set ; }
8- public string Email { get ; set ; }
7+ public required string Name { get ; set ; }
8+ public required string Email { get ; set ; }
99 public string ? Biography { get ; set ; }
1010
1111 [ JsonIgnore ]
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public async Task<IActionResult> PostAsync([FromBody] CreateOrganizerCommand com
3131 public async Task < IActionResult > RegisterParticipantAsync ( int organizerId , int eventId )
3232 {
3333 // TODO: Implementar RegisterOrganizerToEventCommand
34- // Por enquanto mantendo o service call ou pode ser implementado depois
34+ await Task . CompletedTask ;
3535 return Ok ( new { message = "Evento vinculado ao organizador com sucesso." } ) ;
3636 }
3737
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public async Task<IActionResult> PostAsync([FromBody] CreateParticipantCommand c
3131 public async Task < IActionResult > RegisterParticipantAsync ( int eventId , int participantId )
3232 {
3333 // TODO: Implementar RegisterParticipantToEventCommand
34- // Por enquanto mantendo retorno de sucesso ou pode ser implementado depois
34+ await Task . CompletedTask ;
3535 return Ok ( new { message = "Participante vinculado ao evento com sucesso." } ) ;
3636 }
3737
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public async Task<IActionResult> PostAsync([FromBody] CreateSpeakerCommand comma
3131 public async Task < IActionResult > RegisterToEventAsync ( int speakerId , int eventId )
3232 {
3333 // TODO: Implementar RegisterSpeakerToEventCommand
34- // Por enquanto mantendo retorno de sucesso ou pode ser implementado depois
34+ await Task . CompletedTask ;
3535 return Ok ( new { message = "Palestrante vinculado com sucesso ao evento." } ) ;
3636 }
3737
You can’t perform that action at this time.
0 commit comments