Skip to content

Commit

Permalink
Update EventMapper.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
bilimig committed Jun 12, 2024
1 parent 2f4128c commit 450849b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Server/ReasnAPI/ReasnAPI/Mappers/EventMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ public static class EventMapper
{
public static EventDto ToDto(this Event eventToMap)
{
var tags = eventToMap.Tags
.Select(t => new TagDto { Name = t.Name })
.ToList();
var tags = eventToMap.Tags.ToDtoList();

var parameters = eventToMap.Parameters
.Select(p => new ParameterDto { Key = p.Key, Value = p.Value })
.ToList();
var parameters = eventToMap.Parameters.ToDtoList();

return new EventDto
{
Expand Down

0 comments on commit 450849b

Please sign in to comment.