Пример #1
0
        public async Task <IHttpActionResult> AddComment(AddCommentViewModel model)
        {
            var resultado = await _publicationBo.AddComment(model.ToComment(), model.PublicationId.ToObjectId());

            if (resultado != null)
            {
                return(Ok(new CreatedCommentViewModel(resultado))); //mudar isso
            }
            return(StatusCode((HttpStatusCode)422));
        }//teste