root/branches/Emisje/Wierszowki/Wierszowki.Model/Validation/AuthorValidation.cs @ 796

Wersja 752, 0.6 KB (wprowadzona przez marek, 17 years temu)

wiersz

Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel.DataAnnotations;
4using System.Linq;
5using System.Text;
6
7namespace Wierszowki.Core.Validation
8{
9    public class AuthorValidation
10    {
11        [Required(ErrorMessage = "Proszę podać imię")]
12        public string FirstName { get; set; }
13
14        [Required(ErrorMessage = "Proszę podać nazwisko")]
15        public string LastName { get; set; }
16
17        [Range(1, 10, ErrorMessage = "Proszę wybrać typ zatrudnienia")]
18        public int EmploymentTypeId { get; set; }
19    }
20}
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.