예제 #1
0
        public async Task <IActionResult> GetSpins(string userId)
        {
            var result = await spinService.GetSpins(userId);

            if (!result.IsSuccess())
            {
                return(result.ToErrorResponse());
            }
            return(Ok(result.Data));
        }
예제 #2
0
        public async Task <IActionResult> GetSpins()
        {
            var userId = User.Claims.Where(x => x.Type == "id").FirstOrDefault().Value;
            var result = await spinService.GetSpins(userId);

            if (!result.IsSuccess())
            {
                return(result.ToErrorResponse());
            }
            return(Ok(result.Data));
        }