public async Task <IActionResult> Edit(int id, [Bind("Id,Grade,FeedbackId,FeedbackCategoryId")] FeedbackScope feedbackScope)
        {
            if (id != feedbackScope.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(feedbackScope);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!FeedbackScopeExists(feedbackScope.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction("Details", "Feedback", new { id = feedbackScope.FeedbackId }));
            }
            return(View(feedbackScope));
        }
        public async Task <IActionResult> Create([Bind("Id,Grade,FeedbackId,FeedbackCategoryId")] FeedbackScope feedbackScope, string send, string nextCategory)
        {
            if (ModelState.IsValid)
            {
                _context.Add(feedbackScope);
                await _context.SaveChangesAsync();

                if (!string.IsNullOrEmpty(send))
                {
                    return(RedirectToAction("Details", "Feedback", new { id = feedbackScope.FeedbackId }));
                }
                else if (!string.IsNullOrEmpty(nextCategory))
                {
                    return(RedirectToAction("Create", "FeedbackScope", new { feedbackId = feedbackScope.FeedbackId }));
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(feedbackScope));
        }