public async Task <IActionResult> Edit(int id, [Bind("ReportTitlePageID,ReportDefinitionID,SectionOrder,SectionTitle,SectionDesc,ModifiedBy,createDate,modifiedDate")] ReportTitlePage reportTitlePages) { if (id != reportTitlePages.ReportTitlePageID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(reportTitlePages); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!reportTitlePagesExists(reportTitlePages.ReportTitlePageID)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(reportTitlePages)); }
public async Task <IActionResult> Create([Bind("ReportTitlePageID,ReportDefinitionID,SectionOrder,SectionTitle,SectionDesc,ModifiedBy,createDate,modifiedDate")] ReportTitlePage reportTitlePage) { if (ModelState.IsValid) { _context.Add(reportTitlePage); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(reportTitlePage)); }