17 lines
664 B
C#
17 lines
664 B
C#
|
|
namespace TechnoWorld.Models;
|
|
|
|
public class ContactViewModel
|
|
{
|
|
|
|
[System.ComponentModel.DataAnnotations.Required(ErrorMessage = "Введите ваше имя")]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[System.ComponentModel.DataAnnotations.Required(ErrorMessage = "Введите телефон")]
|
|
[System.ComponentModel.DataAnnotations.Phone(ErrorMessage = "Некорректный номер телефона")]
|
|
public string Phone { get; set; } = string.Empty;
|
|
|
|
[System.ComponentModel.DataAnnotations.Required(ErrorMessage = "Введите сообщение")]
|
|
public string Message { get; set; } = string.Empty;
|
|
}
|