public BookInMemory(IAuthorInMemory authorInMemory) { Books = new List <Book>() { new Book { Id = 1, Title = "Romeo and Juliet", NumberOfPages = 480, ImgPath = "romeo.jpg", Author = authorInMemory.GetAuthor(1) }, new Book { Id = 2, Title = "Murder on the orient express", NumberOfPages = 256, ImgPath = "murder.jpg", Author = authorInMemory.GetAuthor(2) }, new Book { Id = 3, Title = "A stone for Danny Fisher", NumberOfPages = 317, ImgPath = "stone.jpg", Author = authorInMemory.GetAuthor(3) } }; this.authorInMemory = authorInMemory; }
public EditModel(IBookInMemory bookInMemory, IAuthorInMemory authorInMemory) { this.bookInMemory = bookInMemory; this.authorInMemory = authorInMemory; }
public EditModel(IAuthorInMemory authorInMemory) { this.authorInMemory = authorInMemory; }
public DetailsModel(IAuthorInMemory authorInMemory) { this.authorInMemory = authorInMemory; }
public ListAuthorsModel(IAuthorInMemory authorInMemory) { this.authorInMemory = authorInMemory; }