require name before use (--> user status 7)

This commit is contained in:
Daniel Balk
2023-04-03 21:22:54 +02:00
parent 5d8796299c
commit 49e75c5a8d
4 changed files with 88 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using System.ComponentModel.DataAnnotations;
namespace Moonlight.App.Models.Forms;
public class NameModel
{
[Required]
[MinLength(2, ErrorMessage = "Do you think, that works?")]
public string FirstName { get; set; }
[Required]
[MinLength(2, ErrorMessage = "Do you think, that works?")]
public string LastName { get; set; }
}