mirror of
https://github.com/github/codeql.git
synced 2025-12-23 20:26:32 +01:00
20 lines
434 B
C#
20 lines
434 B
C#
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System.Net;
|
|
using System.Threading.Tasks;
|
|
namespace test;
|
|
|
|
class TestModel : PageModel {
|
|
public string Name { get; set; } = "abc";
|
|
|
|
private string source() { return "x"; }
|
|
|
|
public async Task<IActionResult> OnPostAsync() {
|
|
this.Name = source();
|
|
return Page();
|
|
}
|
|
|
|
public void OnGet() {
|
|
Name = source();
|
|
}
|
|
} |