public async Task <IActionResult> Edit(long?id, [Bind("Id,Name,Description")] SustainableChemistryWeb.Models.Catalyst catalyst)
        {
            var catalystToUpdate = await _context.AppCatalyst
                                   .SingleOrDefaultAsync(m => m.Id == id);

            if (await TryUpdateModelAsync <Catalyst>(
                    catalystToUpdate,
                    "",
                    r => r.Name, r => r.Description))
            {
                try
                {
                    await _context.SaveChangesAsync();
                }
                catch
                {
                    return(View());
                }
            }
            return(RedirectToAction(nameof(Index)));
        }
        public async Task <IActionResult> Create([Bind("Id,Name,Description")] SustainableChemistryWeb.Models.Catalyst catalyst)
        {
            try
            {
                Catalyst appCat = new Catalyst()
                {
                    Name        = catalyst.Name,
                    Description = catalyst.Description
                };
                if (ModelState.IsValid)
                {
                    _context.Add(appCat);
                    await _context.SaveChangesAsync();

                    return(RedirectToAction(nameof(Index)));
                }
                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(View());
            }
        }