public async Task <IActionResult> GetSpins(string userId) { var result = await spinService.GetSpins(userId); if (!result.IsSuccess()) { return(result.ToErrorResponse()); } return(Ok(result.Data)); }
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)); }