コード例 #1
0
        public ActionResult EditRequest(SpecRequestInformation sInfo)
        {
            using (var sRepository = new SpecRequestRepository())
            {
                if (ModelState.IsValid)
                {
                    sRepository.UpdateSpecRequest(sInfo);

                    return(RedirectToAction("Manage"));
                }
                ViewBag.BlankInformation = sRepository.NewSpecRequest(false);
            }

            return(View(sInfo));
        }