public async Task <IActionResult> EditPost(int id)
        {
            var  actorToUpdate = _context.GetActorById(id);
            bool isUpdated     = await TryUpdateModelAsync <Actors>(
                actorToUpdate,
                "",
                c => c.Id,
                c => c.Name,
                c => c.Age,
                c => c.AcademyWinner
                );

            if (isUpdated)
            {
                _context.SaveChanges();
                return(RedirectToAction(nameof(Index)));
            }

            return(View(actorToUpdate));
        }