public ActionResult Create(TPOCurrentScrimModel model)
        {
            TPOCurrentScrim bl = new TPOCurrentScrim();

            model = bl.InsertTPOCurrentScrimModel(model);
            TempData["ActionMessage"]     = MessageRepository.GetStringValue(MessageKeys.ResponseMessageSuccessSave);
            TempData["ActionMessageType"] = MessageRepository.GetStringValue(MessageKeys.ResponseTypeSuccess);
            return(RedirectToAction("Edit", model.ID));
        }
        public ActionResult Edit(ConsolidatedCurrentRawMaterialsAndRollsViewModel model)
        {
            TPOCurrentScrim bl     = new TPOCurrentScrim();
            string          lineID = model.LineID;

            model.TPOCurrentScrim.LineID = lineID;
            if (model.TPOCurrentScrim.ID > 0)
            {
                bl.UpdateTPOCurrentScrimModel(model.TPOCurrentScrim);
            }
            else
            {
                bl.InsertTPOCurrentScrimModel(model.TPOCurrentScrim);
            }
            TempData["ActionMessage"]     = MessageRepository.GetStringValue(MessageKeys.ResponseMessageSuccessSave);
            TempData["ActionMessageType"] = MessageRepository.GetStringValue(MessageKeys.ResponseTypeSuccess);
            return(RedirectToAction("Edit", new { lineID = lineID }));
        }