コード例 #1
0
        public IHttpActionResult Get()
        {
            //ClaimsPrincipal principal = Request.GetRequestContext().Principal as ClaimsPrincipal;

            //var Name = ClaimsPrincipal.Current.Identity.Name;
            //var Name1 = User.Identity.Name;

            //var userName = principal.Claims.Where(c => c.Type == "sub").Single().Value;

            return(Ok(Order.CreateOrders()));
        }
コード例 #2
0
 public IHttpActionResult Get()
 {
     return(Ok(Order.CreateOrders()));
 }