Employee.cs 387 B

12345678910111213
  1. using System.ComponentModel.DataAnnotations;
  2. namespace BlazorEditForms.Model;
  3. public class Employee
  4. {
  5. [Required]
  6. [MinLength(3)]
  7. public string Code { get; set; } = string.Empty;
  8. public string Firstname { get; set; } = string.Empty;
  9. public string Lastname { get; set; } = string.Empty;
  10. public IList<PhoneNumber> PhoneNumbers { get; set; } = [];
  11. }