29 lines
622 B
C#
29 lines
622 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using ThAmCo.Events.Data;
|
|
|
|
namespace ThAmCo.Events.Models
|
|
{
|
|
public class CustomerCreateModel
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
[Required]
|
|
public string Surname { get; set; }
|
|
|
|
[Required]
|
|
public string FirstName { get; set; }
|
|
|
|
[Required]
|
|
[DataType(DataType.EmailAddress)]
|
|
public string Email { get; set; }
|
|
|
|
public List<Event> Events { get; set; }
|
|
|
|
public int InitialEvent { get; set; }
|
|
}
|
|
}
|