예제 #1
0
        public async Task <IActionResult> GetRewardInfo()
        {
            var claim = User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Name);

            var result = await _rewardService.GetConsumerUserRewardInfoAsync(claim.Value);

            return(new JsonResult(result));
        }