public AddItemModel(IDataAcces dataAcces, IHostingEnvironment hostingEnvironment) { Item = new Item(); this.hostingEnvironment = hostingEnvironment; this.dataAcces = dataAcces; Authors = dataAcces.GetAuthors(); }
public EditItemModel(IDataAcces dataAcces, IHostingEnvironment hostingEnvironment) { this.dataAcces = dataAcces; this.hostingEnvironment = hostingEnvironment; Authors = dataAcces.GetAuthors(); }
public void OnGet() { Authors = dataAcces.GetAuthors(); }