/// <summary>
        /// Update the quantity for the live orders
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void BtnUpdateQuantityClick(object sender, EventArgs e)
        {
            //now update the quantity for each menu in the live order details table



            try
            {
                var liveOrder = _orderManagement.GetLiveOrder();
                if (liveOrder != null)
                {
                    var value = ddlWeekAndDates.SelectedValue;

                    var weekPart = value.Split(new char[] { '(' });

                    var dates = weekPart[1].Trim().Replace(")", "");

                    var datePart = dates.Split(new char[] { '-' });

                    //validation added to check if flight schedule is present or not?
                    var flightScheuldeValid = true;

                    try
                    {
                        flightScheuldeValid = _menuProcessor.FlightScheduleValidityCheck(liveOrder.LiveOrderId, Convert.ToDateTime(datePart[0]), Convert.ToDateTime(datePart[1]));
                    }
                    catch { }

                    if (flightScheuldeValid)
                    {
                        _menuProcessor.CalculateQuantity(liveOrder.LiveOrderId, Convert.ToDateTime(datePart[0]), Convert.ToDateTime(datePart[1]));
                        BindGrid();
                    }
                    else
                    {
                        //send mail alert

                        var scheduleMailTemplate = EmailHelper.FlightScheduleMailTemplate;

                        string notificationEmails = (System.Configuration.ConfigurationManager.AppSettings["NotificationEmails"]);

                        var emails = notificationEmails.Split(new char[] { ';' });

                        foreach (var email in emails)
                        {
                            if (!string.IsNullOrEmpty(email))
                            {
                                EmailHelper.SendMail(email, "*****@*****.**", "EMMA- Flight Schedule Issue", scheduleMailTemplate);
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                //write to Elma
                ErrorSignal.FromCurrentContext().Raise(ex);
            }
        }