public async Task <IActionResult> AddImage(int?id, IFormFile uploads)
        {
            if (id != null)
            {
                if (uploads != null)
                {
                    Prodacts prodacts = await _context.Prodacts.Where(x => x.id == id).FirstOrDefaultAsync();

                    byte[] p1 = null;
                    using (var fs1 = uploads.OpenReadStream())
                        using (var ms1 = new MemoryStream())
                        {
                            fs1.CopyTo(ms1);
                            p1 = ms1.ToArray();
                        }
                    prodacts.ImageMimeTypeOfData = uploads.ContentType;
                    prodacts.Image = p1;
                    _context.Prodacts.Update(prodacts);
                    _context.SaveChanges();
                    return(RedirectToAction(nameof(Index)));
                }
            }

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