public IActionResult PlaceOrder([FromBody] PlaceOrderDTO order, [FromServices] PlaceOrderCommand placeOrderCommand)
        {
            placeOrderCommand.Order = order;
            placeOrderCommand.Execute();

            return(NoContent());
        }
 private async void MessageCenterSubmitAsync(RecorderViewModel source, PredictionData data)
 {
     Device.BeginInvokeOnMainThread(async() =>
     {
         if (data == null)
         {
             await Application.Current.MainPage.DisplayAlert("Error", "No data returned. Please record your command again or contact support", "Cancel", "ok");
         }
         //if english
         if (data.ClassId.Trim() == "Place order" && data.Probability > 70.0)
         {
             PlaceOrderCommand.Execute(null);
         }
         else if (data.ClassId == "Back or Go back" && data.Probability > 70.0)
         {
             await Application.Current.MainPage.Navigation.PopAsync();
         }
         else
         {
             await Application.Current.MainPage.DisplayAlert("Error", "Please record your command again. Recording is not clear enough", "Cancel", "ok");
         }
     });
 }