コード例 #1
0
        public async Task <IActionResult> Edit(int id, [Bind("BASELINEID,MAI,RP_CI_Name,RP_Environment,PLATFORM,VERSION,OAR_ID,DOMAIN_IT_PRODUCT,DOMAIN_OAR,SUB_DOMAIN,ADM_VENDOR,MAINT_VENDOR,IT_PRODUCT_ID,IT_PRODUCT,IT_BUSINESS_SERVICE,CIA_RATING_IT_PRODUCT,CIA_RATING_OAR,RP_CI_STATUS,PLANNING,ACTION,SUB_ACTION,MATCH_WAVE,MATCH_DATE,MATCH_PHASE,CLEAN_SOURCE,CLEAN_DATE,CLEAN_PHASE,CLEAN_ID,HISTORY,STATUS_IT_PRODUCT,PRIMARY_CI_NAME,ADDRESS_OF_CI,LOGICAL_CI_AD_DOMAIN,IP_ADDRESS,MATCH_VENDOR,CIA,PHYSICAL_SERVER_NAME,PHYSICAL_CI_NAME,BUSINESS_SERVICE")] IBMBaseline iBMBaseline)
        {
            if (id != iBMBaseline.BASELINEID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(iBMBaseline);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!IBMBaselineExists(iBMBaseline.BASELINEID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(iBMBaseline));
        }
コード例 #2
0
        public async Task <IActionResult> Edit(int id, [Bind("Wave_Plan_ID,MAI,OAR_ID,IT_PRODUCT,CIA_RATING,DOMAIN,WP_4_0,IT_DELIVERY_DOMAIN,IT_PROD_ID,BAU_AD_VENDOR,MATCH_VENDOR")] WAVE_PLAN wAVE_PLAN)
        {
            if (id != wAVE_PLAN.Wave_Plan_ID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(wAVE_PLAN);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!WAVE_PLANExists(wAVE_PLAN.Wave_Plan_ID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(wAVE_PLAN));
        }
コード例 #3
0
        public async Task <IActionResult> Edit(int id, [Bind("DCL3ID,MAI,Wave,DOMAIN,IT_GRID,OAR_ID,PRODUCT_ID,IT_PRODUCT,MATCH_ITPRODUCT,MATCH_VENDOR")] DCL3 dCL3)
        {
            if (id != dCL3.DCL3ID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(dCL3);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!DCL3Exists(dCL3.DCL3ID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(dCL3));
        }