Wonky.Client/Wonky.Entity/DTO/ContactDto.cs

29 lines
951 B
C#
Raw Permalink Normal View History

2022-11-14 17:06:43 +01:00
using System.ComponentModel.DataAnnotations;
namespace Wonky.Entity.DTO;
public class ContactDto
{
public string CompanyId { get; set; } = "";
2022-11-17 19:11:49 +01:00
public string ContactId { get; set; } = "";
2022-11-14 17:06:43 +01:00
[Required(ErrorMessage = "Fornavn skal udfyldes.")]
[MaxLength(30, ErrorMessage = "Du kan højst bruge 30 tegn")]
public string FirstName { get; set; } = "";
[MaxLength(30, ErrorMessage = "Du kan højst bruge 30 tegn.")]
public string LastName { get; set; } = "";
2022-11-17 19:11:49 +01:00
[MaxLength(50, ErrorMessage = "Du kan højst bruge 50 tegn.")]
public string JobTitle { get; set; } = "";
2022-11-14 17:06:43 +01:00
[MaxLength(80, ErrorMessage = "Du kan højst bruge 80 tegn.")]
public string Email { get; set; } = "";
[MaxLength(30, ErrorMessage = "Du kan højst bruge 30 tegn.")]
2022-11-17 19:11:49 +01:00
public string PhoneDirect { get; set; } = "";
2022-11-14 17:06:43 +01:00
[MaxLength(30, ErrorMessage = "Du kan højst bruge 30 tegn.")]
public string Mobile { get; set; } = "";
}