Example #1
0
        public async Task <IActionResult> PostEntryList(long startTimeStamp, long endTimeStamp, int skipCount, int pageSize = 10)
        {
            var  userIdStr = User.Claims?.FirstOrDefault(x => x.Type == "OryxUser")?.Value;
            Guid?userId;

            if (!string.IsNullOrEmpty(userIdStr))
            {
                userId = Guid.Parse(userIdStr);
            }
            else
            {
                userId = null;
            }
            startTimeStamp = TimeStamp.Get();
            var apiMsg = await ApiMessage.Wrap(async() =>
            {
                return(await postEntryBusiness.GetPostEntryList(userId, startTimeStamp, endTimeStamp, skipCount, pageSize));
            });

            return(Json(apiMsg));
        }