Example #1
0
        public async Task <IActionResult> AddEvaluationAsync([FromRoute] string publicationId, [FromBody] EvaluationDto evaluationDto)
        {
            var evaluation = _mapper.Map <evaluation>(evaluationDto);

            evaluation.author        = GetSession().Username;
            evaluation.publicationId = publicationId;
            await _reviewService.AddEvalutionAsync(publicationId, evaluation);

            return(Ok());
        }