/*
        Metodo para actualizar un producto
        */
        private void updateProcessGroupAux()
        {
            if (HttpContext.Current.Session["ProductId"] != null)
            {
                string value = ValueProduct.Text;
                if (value != "")
                {
                    ProcessService processService = new ProcessService();
                    ProductUpdateView ProductsView = new ProductUpdateView();

                    String reason = Session["reason"].ToString();
                    String user = Context.User.Identity.Name;
                    AuditDataFromWeb audit = new AuditDataFromWeb();
                    audit.Reason = reason;
                    audit.StationIP = General.getIp(this.Page);
                    audit.UserName = user;

                    ProductsView.ProductLineId = Int32.Parse(HttpContext.Current.Session["ProductId"].ToString());
                    ProductsView.ProductLineName = value;

                    CUDView crud = processService.updateProduct(ProductsView,audit);

                    if (crud.update == false)
                    {
                        this.Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Could not update the Value')", true);
                    }
                    else
                    {
                        ValueProduct.Text = "";
                        fillProductGroupTable();
                        updateProductModal.Update();
                    }
                    HttpContext.Current.Session["operation"] = "create";
                    showProductModal();
                }
            }
        }
        protected void updateProcessGroup_Click(object sender, EventArgs e)
        {
            if (HttpContext.Current.Session["ProductId"] != null)
            {

                string value = ValueProduct.Text;
                if (value != "")
                {
                    ProcessService processService = new ProcessService();
                    ProductUpdateView ProductsView = new ProductUpdateView();

                    ProductsView.ProductLineId = Int32.Parse(HttpContext.Current.Session["ProductId"].ToString());
                    ProductsView.ProductLineName = value;

                    CUDView crud = processService.updateProduct(ProductsView);

                    if (crud.update == false)
                    {
                        this.Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Could not update the Value')", true);
                    }
                    else
                    {
                        ValueProduct.Text = "";
                        fillProductGroupTable();
                        updateProductModal.Update();
                    }
                }
            }
        }