Exemple #1
0
        public ActionResult PrecisionStampingEditSubmit(BasePrecisionStampingEditViewModel edit_PrecisionStamping)
        {
            var precisionStamping = db.PrecisionStamping.Find(edit_PrecisionStamping.Id);

            precisionStamping.Title = edit_PrecisionStamping.Title;
            precisionStamping.Content = edit_PrecisionStamping.Content;

            db.SaveChanges();

            return RedirectToAction("PrecisionStamping");
        }
Exemple #2
0
        public ActionResult PrecisionStampingEdit(int id)
        {
            var precisionStamping = db.PrecisionStamping.Find(id);

            BasePrecisionStampingEditViewModel _precisionStamping = new BasePrecisionStampingEditViewModel
            {
                Title = precisionStamping.Title,
                Content = precisionStamping.Content
            };

            return View(_precisionStamping);
        }