public async Task <IActionResult> Post(string tripName, [FromBody] CommentViewModel vm)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    //saving to database


                    var newComment = Mapper.Map <Comment>(vm);

                    newComment.UserName = User.Identity.Name;
                    _repository.AddComment(tripName, newComment);

                    if (await _repository.SaveChangesAsync())
                    {
                        return(Created($"/api/trips/{tripName}/Comments/{newComment.UserName}",
                                       Mapper.Map <CommentViewModel>(newComment)));
                    }
                }
            }
            catch (Exception ex)
            {
                _logger.LogError("Failed to get comment: {0}", ex);
            }
            return(BadRequest("Failed to get comment"));
        }