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())); }
public IHttpActionResult Get() { return(Ok(Order.CreateOrders())); }