public async Task <IActionResult> Edit(int id, [Bind("id,ClientProjectReportsID,isSelected,PointColor,trendLine,ModifiedBy,createDate,modifiedDate")] ProjectReportSampleSelection projectReportSampleSelection)
        {
            if (id != projectReportSampleSelection.id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(projectReportSampleSelection);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!ProjectReportSampleSelectionExists(projectReportSampleSelection.id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(projectReportSampleSelection));
        }
        public async Task <IActionResult> Create([Bind("id,ClientProjectReportsID,isSelected,PointColor,trendLine,ModifiedBy,createDate,modifiedDate")] ProjectReportSampleSelection projectReportSampleSelection)
        {
            if (ModelState.IsValid)
            {
                _context.Add(projectReportSampleSelection);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(projectReportSampleSelection));
        }