Esempio n. 1
0
 public AddItemModel(IDataAcces dataAcces, IHostingEnvironment hostingEnvironment)
 {
     Item = new Item();
     this.hostingEnvironment = hostingEnvironment;
     this.dataAcces          = dataAcces;
     Authors = dataAcces.GetAuthors();
 }
Esempio n. 2
0
 public EditItemModel(IDataAcces dataAcces, IHostingEnvironment hostingEnvironment)
 {
     this.dataAcces          = dataAcces;
     this.hostingEnvironment = hostingEnvironment;
     Authors = dataAcces.GetAuthors();
 }
Esempio n. 3
0
 public void OnGet()
 {
     Authors = dataAcces.GetAuthors();
 }