public async Task <IActionResult> Edit(int id, [Bind("ReviewID,Name,Rating,ReviewText,SupplierID,ReviewDate")] SupplierReview supplierReview)
        {
            if (id != supplierReview.ReviewID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(supplierReview);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!SupplierReviewExists(supplierReview.ReviewID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(supplierReview));
        }
        public async Task <IActionResult> Create([Bind("ReviewID,Name,Rating,ReviewText,SupplierID,ReviewDate")] SupplierReview supplierReview)
        {
            if (ModelState.IsValid)
            {
                _context.Add(supplierReview);
                await _context.SaveChangesAsync();

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