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)); }
public async Task <IActionResult> Create([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 (ModelState.IsValid) { _context.Add(iBMBaseline); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(iBMBaseline)); }