Browse Source

Formatting

pull/491/head
Sebastian 7 years ago
parent
commit
ccffd2a86e
  1. 4
      backend/src/Squidex/Areas/Api/Controllers/Comments/Models/CommentDto.cs

4
backend/src/Squidex/Areas/Api/Controllers/Comments/Models/CommentDto.cs

@ -52,7 +52,9 @@ namespace Squidex.Areas.Api.Controllers.Comments.Models
public static CommentDto FromCommand(CreateComment command) public static CommentDto FromCommand(CreateComment command)
{ {
return SimpleMapper.Map(command, new CommentDto { Id = command.CommentId, User = command.Actor, Time = SystemClock.Instance.GetCurrentInstant() }); var time = SystemClock.Instance.GetCurrentInstant();
return SimpleMapper.Map(command, new CommentDto { Id = command.CommentId, User = command.Actor, Time = time });
} }
} }
} }

Loading…
Cancel
Save