public ActionResult GetOpinions()
        {
            _logger.LogInformation("Getting opinions");
            var opinion = _opinionService.GetAllOpinions();

            var opinionViewModel = opinion.Select(
                opinion => OpinionMapper.SerializeOpinionModel(opinion));

            return(Ok(opinion));
        }
Beispiel #2
0
 public IActionResult GetOpinions()
 {
     return(Ok(_opinionService.GetAllOpinions()));
 }