67 lines
1.5 KiB
C#
67 lines
1.5 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace gehGassi.Domain.Common
|
|
{
|
|
/// <summary>
|
|
/// Repräsentiert Kontakt-Daten
|
|
/// </summary>
|
|
public class Contact
|
|
{
|
|
/// <summary>
|
|
/// Email-Adresse der Kontaktperson
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(255)]
|
|
public string Email { get; set; }
|
|
|
|
/// <summary>
|
|
/// Optinale Telefonnummer (Festnetz)
|
|
/// </summary>
|
|
[MaxLength(100)]
|
|
public string Phone { get; set; }
|
|
|
|
/// <summary>
|
|
/// Optinale Handy-Nummer
|
|
/// </summary>
|
|
[MaxLength(100)]
|
|
public string Mobile { get; set; }
|
|
|
|
/// <summary>
|
|
/// Optional: Fax
|
|
/// </summary>
|
|
[MaxLength(100)]
|
|
public string Fax { get; set; }
|
|
|
|
/// <summary>
|
|
/// Optional: Web-Adresse
|
|
/// </summary>
|
|
[MaxLength(255)]
|
|
public string Web { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Repräsentiert Kontakt-Daten Minimalversion
|
|
/// </summary>
|
|
public class ContactMin
|
|
{
|
|
/// <summary>
|
|
/// Email-Adresse der Kontaktperson
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(255)]
|
|
public string Email { get; set; }
|
|
|
|
/// <summary>
|
|
/// Optinale Telefonnummer (Festnetz)
|
|
/// </summary>
|
|
[MaxLength(100)]
|
|
public string Phone { get; set; }
|
|
|
|
/// <summary>
|
|
/// Optinale Handy-Nummer
|
|
/// </summary>
|
|
[MaxLength(100)]
|
|
public string Mobile { get; set; }
|
|
}
|
|
}
|