Exemplo n.º 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));
        }
Exemplo n.º 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));
        }