hallo
This commit is contained in:
24
Desktop/hallo/LEA/Models/Contact.cs
Normal file
24
Desktop/hallo/LEA/Models/Contact.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace LEA.Models;
|
||||
|
||||
public class Contact
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[StringLength(100, ErrorMessage = "Der Name darf maximal {1} Zeichen lang sein.")]
|
||||
[Display(Name = "Name")]
|
||||
public string? FullName { get; set; }
|
||||
|
||||
[EmailAddress(ErrorMessage = "Bitte eine gültige E-Mail-Adresse eingeben.")]
|
||||
[Display(Name = "E-Mail")]
|
||||
public string? Email { get; set; }
|
||||
|
||||
[Phone(ErrorMessage = "Bitte eine gültige Telefonnummer eingeben.")]
|
||||
[Display(Name = "Telefon")]
|
||||
public string? Phone { get; set; }
|
||||
|
||||
public int ApplicationId { get; set; }
|
||||
|
||||
public Application Application { get; set; } = null!;
|
||||
}
|
Reference in New Issue
Block a user