Beispiel #1
0
        public async Task <IActionResult> PostCategoryComment([FromBody] CategoryComment comment)
        {
            var userIdStr = User.Claims?.FirstOrDefault(x => x.Type == "OryxUser")?.Value;
            var userId    = Guid.Parse(userIdStr);

            comment.UserAccountId = userId;
            var apiMsg = await ApiMessage.Wrap(async() =>
            {
                await contentBusiness.CreateCategoryCommentExtPostEntry(comment);
            });

            return(Json(apiMsg));
        }