public void Update(DbAuthor author)
        {
            var dbbook = Get(author.Id);

            dbbook.FirstName = author.FirstName;
            dbbook.LastName  = author.LastName;
        }
        public int Create(DbAuthor author)
        {
            var newId = _authors.Any() ? (_authors.Max(x => x.Id) + 1) : 1;

            author.Id = newId;
            _authors.Add(author);

            return(newId);
        }