21 lines
347 B
C#
21 lines
347 B
C#
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||
|
|
||
|
namespace MyWebApp.Pages;
|
||
|
|
||
|
public class GumbyModel : PageModel
|
||
|
{
|
||
|
public void OnGet()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
public void OnPostPress()
|
||
|
{
|
||
|
ViewData["Message"] = "Yay! You Pressed The Button!";
|
||
|
}
|
||
|
|
||
|
public void OnPostClear()
|
||
|
{
|
||
|
ViewData["Message"] = null;
|
||
|
}
|
||
|
}
|