require name before use (--> user status 7)
This commit is contained in:
14
Moonlight/App/Models/Forms/NameModel.cs
Normal file
14
Moonlight/App/Models/Forms/NameModel.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user