예제 #1
0
        public async Task <IActionResult> PostComments(Comment _commentModel)
        {
            var userIdStr = User.Claims?.FirstOrDefault(x => x.Type == "OryxUser")?.Value;
            var userId    = Guid.Parse(userIdStr);
            var apiMsg    = await ApiMessage.Wrap(async() =>
            {
                await contentBusiness.CreateComment(_commentModel);
            });

            return(Json(apiMsg));
        }