Example #1
0
        public async Task <IActionResult> GetPostEntryCommentsByUser(Guid?userId, int skipCount = 0, int pageSize = 10)
        {
            if (userId == null)
            {
                var userIdStr = User.Claims?.FirstOrDefault(x => x.Type == "OryxUser")?.Value;
                userId = Guid.Parse(userIdStr);
            }

            var apiMsg = await ApiMessage.Wrap(async() =>
            {
                return(await postEntryBusiness.GetPostEntryCommentsByUserId(userId.Value, skipCount, pageSize));
            });

            return(Json(apiMsg));
        }