first push
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ModelsLib
|
||||
{
|
||||
public class ContactModel
|
||||
{
|
||||
[Required(ErrorMessage = "Le nom est obligatoire")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
[Required(ErrorMessage = "L'email est obligatoire")]
|
||||
[EmailAddress(ErrorMessage = "Email invalide")]
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
[Required(ErrorMessage = "Le message est obligatoire")]
|
||||
[MinLength(10, ErrorMessage = "Le message doit contenir au moins 10 caractères")]
|
||||
public string Message { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user