public BooksServices(IAuthorsServices authorsServices) { this.authorsServices = authorsServices; books = new List <Book>() { new Book() { Id = 1, Titulo = "Elver", Genero = "Accion", idAuthor = 1 }, new Book() { Id = 2, Titulo = "It", Genero = "Romantica", idAuthor = 1 }, new Book() { Id = 3, Titulo = "4 fantasticos", Genero = "Accion", idAuthor = 2 } }; }
public AuthorsController(IAuthorsServices authorsServices) { this.authorsServices = authorsServices; }