Beispiel #1
0
        public EditModel(BooksInfoContext infoContext,
                         IHtmlHelper htmlHelper)
        {
            _infoContext = infoContext;
            _htmlHelper  = htmlHelper;

            Types = _htmlHelper.GetEnumSelectList <BookType>();
        }
Beispiel #2
0
 public AuthorDeletionModel(BooksInfoContext infoContext)
 {
     _infoContext = infoContext;
 }
Beispiel #3
0
 public AuthorDetailsModel(BooksInfoContext infoContext)
 {
     _infoContext = infoContext;
 }
 public DetailModel(BooksInfoContext infoContext)
 {
     _infoContext = infoContext;
 }
Beispiel #5
0
 public AddAuthorModel(BooksInfoContext booksInfo)
 {
     _booksInfo = booksInfo;
 }
Beispiel #6
0
 public ListModel(BooksInfoContext booksInfoContext)
 {
     _booksInfoContext = booksInfoContext;
 }
 public DeleteModel(BooksInfoContext booksInfoContext)
 {
     _booksInfoContext = booksInfoContext;
 }
Beispiel #8
0
 public AuthorListModel(BooksInfoContext infoContext)
 {
     _infoContext = infoContext;
 }
Beispiel #9
0
 public BooksController(BooksInfoContext context)
 {
     _context = context;
 }