Ejemplo n.º 1
0
        public async Task <IActionResult> AddComment(InfoViewComments comment)
        {
            int id        = (await userRepository.GetUserByLogin(User.Identity.Name)).Id;
            int commentId = await commentsRepository.AddNewComment(mapper.Map <Comments>(comment), id);

            return(Ok(commentId));
        }