// GET: Authors/Edit/5
        public async Task <IActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var author = await AuthorRepository.EditAuthorById(id);

            if (author == null)
            {
                return(NotFound());
            }
            return(View(author));
        }