Proj. plan, URS v1.01; UML v1; ModelBinding, DataAnnotations, Models start

This commit is contained in:
Dimitar Byalkov
2023-03-16 00:12:14 +01:00
parent 3874cc0ad0
commit e296205466
112 changed files with 506 additions and 954 deletions

View File

@@ -0,0 +1,19 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace WebApp.Pages
{
public class ContactModel : PageModel
{
[BindProperty]
public Contact Contact { get; set; }
public void OnGet()
{
}
public void OnPost()
{
ViewData["confirm"] = $"Thank you for contacting us, {Contact.Name}! We promise to return a response in a timely manner to the following e-mail address: {Contact.Email}";
}
}
}