public ActionResult Edit(ProdLineEx prodLineEx)
        {
            if (ModelState.IsValid)
            {
                prodLineEx.Region = genericMgr.FindById<FlowMaster>(prodLineEx.ProductLine).PartyFrom;
                this.genericMgr.UpdateWithTrim(prodLineEx);
                SaveSuccessMessage(Resources.MRP.ProdLineEx.ProdLineEx_Updated);
            }

            return View(prodLineEx);
        }
        public ActionResult New(ProdLineEx prodLineEx)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    prodLineEx.Region = genericMgr.FindById<FlowMaster>(prodLineEx.ProductLine).PartyFrom;
                    this.genericMgr.CreateWithTrim(prodLineEx);
                    SaveSuccessMessage(Resources.MRP.ProdLineEx.ProdLineEx_Added);
                    string ProductLine = prodLineEx.ProductLine;
                    string Item = prodLineEx.Item;
                    //return RedirectToAction("Edit", new object[] { ProductLine, Item });
                    return new RedirectToRouteResult(new RouteValueDictionary { { "action", "Edit" }, { "controller", "MrpSnapProdLineEx" }, { "ProductLine", ProductLine }, { "Item", Item } });
                }
            }
            catch (Exception e)
            {
                if (e is CommitResourceException)
                {
                    SaveErrorMessage(Resources.EXT.ControllerLan.Con_AlreadyExitsSameData);
                }

            }

            return View(prodLineEx);
        }