コード例 #1
0
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            var designation = designService.GetOneModel(Convert.ToInt32(id));

            if (designation == null)
            {
                return(View());
            }

            return(View(@"~\Views\Configuration\Designation\Edit.cshtml", designation));
        }
コード例 #2
0
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            var education = educationService.GetOneModel(Convert.ToInt32(id));

            if (education == null)
            {
                return(HttpNotFound());
            }

            return(View(@"~\Views\Configuration\Education\Edit.cshtml", education));
        }
コード例 #3
0
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            var office = officeTypeService.GetOneModel(Convert.ToInt32(id));

            if (office == null)
            {
                return(HttpNotFound());
            }

            return(View(@"~\Views\Configuration\OfficeType\Edit.cshtml", office));
        }