public async Task <IActionResult> OnPostAsync() { if (!ModelState.IsValid) { return(Page()); } await dataSource.CreateAsync(EditedNotebook); return(RedirectToPage("./Index")); }
public Task CreateAsync(Notebook notebook) { return(dataSource.CreateAsync(notebook)); }