Example #1
0
        public IActionResult Tips()
        {
            var auth = HttpContext.AuthenticateAsync();
            var id   = Convert.ToInt32(auth.Result.Principal.Claims.First(t => t.Type.Equals(ClaimTypes.NameIdentifier))
                                       ?.Value);

            return(Ok(GlobalFunc.GetTips(id)));
        }