public async Task <IHttpActionResult> GetOrderHistory(int orderId) { Guid userId = new Guid(this.User.Identity.GetUserId()); OrdersProvider ordersProvider = new OrdersProvider(); IEnumerable <StatusHistoryModel> orderItems = await ordersProvider.GetOrderHistory(orderId, userId); return(this.Ok(orderItems)); }