public DTOs.Order Save([FromBody] DTOs.Order order) { var currPrincipal = HttpContext.Current.User as ClaimsPrincipal; var currIdentity = currPrincipal.Identity as BasicAuthenticationIdentity; int userId = currIdentity.UserId; return(_ordersQueryProcessor.Save(order)); }