23 lines
660 B
C#
23 lines
660 B
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
|
|
namespace Marco.Pms.Model.Directory
|
|
{
|
|
public class ContactPhone
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Label { get; set; } = string.Empty;
|
|
public string PhoneNumber { get; set; } = string.Empty;
|
|
[DisplayName("ContactId")]
|
|
public Guid ContactId { get; set; }
|
|
[ValidateNever]
|
|
[ForeignKey(nameof(ContactId))]
|
|
public Contact? Contact { get; set; }
|
|
public bool IsPrimary { get; set; }
|
|
|
|
public Guid TenantId { get; set; }
|
|
|
|
}
|
|
}
|