public async Task <Commentary> InsertAsync(int postageId, CommentaryInput input) { var userId = _logged.GetClientLoggedId(); var comment = new Commentary(postageId, userId, input.Text); //Validar os dados obrigatorios var id = await _commentaryRepository .InsertAsync(comment) .ConfigureAwait(false); comment.SetId(id); return(comment); }