Beispiel #1
0
        public ActionResult Detail(int?id, Molde model, FormCollection values)
        {
            MoldRepository objMold = new MoldRepository(SessionCustom);

            objMold.Entity            = model.Mold;
            objMold.Entity.Xmlcontent = this.GetXmlDocument(values).InnerXml;

            if (id != null)
            {
                objMold.Entity.MoldId = id;
                objMold.Update();
                this.InsertAudit("Update", this.Module.Name + " -> " + objMold.Entity.Name);
            }
            else
            {
                objMold.Insert();
                this.InsertAudit("Insert", this.Module.Name + " -> " + objMold.Entity.Name);
            }

            return(this.RedirectToAction("Index"));
        }