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