private void ReorderAllMenuWithMenuUpdate()
        {
            var movedtoliveorderCount = 0;

            var currOrderId  = lblCurrOrderId.Text;
            var orderdetails = _orderManagement.GetMenuDetailsbyOrderId(Convert.ToInt32(currOrderId));

            //Selected Menus - recreate old menu
            var reCreatedMenuCount = 0;

            var         userId     = Convert.ToInt32(Session["USERID"]);
            List <long> newMenuIds = new List <long>();

            foreach (var order in orderdetails)
            {
                var createNewMenu = _orderManagement.CreateReorderMenuFromMenuid(order.MenuId, userId);

                _menuManagement.UpdateMenuHistory(order.MenuId, userId, "ReOrder Duplicate Menu Created - with same chili document as old menu");

                _menuProcessor.CreateChiliDocumentForReOrderMenuBymenuid(order.MenuId);

                _menuProcessor.UpdateLotNoChiliVariable(order.MenuId);

                _menuManagement.UpdateMenuHistory(order.MenuId, userId, "ReOrder Duplicate Menu Created - New Chili document Id created");

                newMenuIds.Add(createNewMenu);
                if (createNewMenu != 0)
                {
                    reCreatedMenuCount = reCreatedMenuCount + 1;
                }
            }

            //ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "MsgOrderReCreted", "MsgOrderReCreted(" + movedtoliveorderCount + "," + reCreatedMenuCount + ");", true);

            divProcessdone.Visible    = true;
            divReorderOptions.Visible = false;


            //send email
            var user = _accountManagement.GetUserById(userId);

            var reorderMessage = EmailHelper.ReorderOption3EmailTemplate;

            reorderMessage = EmailHelper.ConvertMail2(reorderMessage, Convert.ToString(movedtoliveorderCount), "\\[MOVEDTOLIVEORDER\\]");
            reorderMessage = EmailHelper.ConvertMail2(reorderMessage, Convert.ToString(reCreatedMenuCount), "\\[RECREAREDFORREORDER\\]");

            EmailHelper.SendMail(user.Username, "*****@*****.**", "EMMA- Re-Order with menu update", reorderMessage);

            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- Re-Order with menu update", reorderMessage);
                }
            }
        }