public async Task <IActionResult> OnPostAsync() { if (!ModelState.IsValid) { return(Page()); } var comment = new CommentModel { Text = Comment, Status = "New comment" }; await _storage.AddCommentAsync(comment); return(RedirectToPage("/Index")); }