Ejemplo n.º 1
0
        public IActionResult Post([FromBody] ReviewRequest review)
        {
            if (!_reviewService.AddNewReview(AutoMapper.Mapper.Map <Review>(review)))
            {
                return(BadRequest());
            }

            return(Ok());
        }