|
Wersja 752, 0.6 KB
(wprowadzona przez marek, 17 years temu)
|
|
wiersz
|
| Line | |
|---|
| 1 | using System;
|
|---|
| 2 | using System.Collections.Generic;
|
|---|
| 3 | using System.ComponentModel.DataAnnotations;
|
|---|
| 4 | using System.Linq;
|
|---|
| 5 | using System.Text;
|
|---|
| 6 |
|
|---|
| 7 | namespace Wierszowki.Core.Validation
|
|---|
| 8 | {
|
|---|
| 9 | public class UserValidation
|
|---|
| 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 | [Required(ErrorMessage = "Proszę podać login")]
|
|---|
| 18 | public string Login { get; set; }
|
|---|
| 19 |
|
|---|
| 20 | [Required(ErrorMessage = "Proszę podać hasło")]
|
|---|
| 21 | public string Password { get; set; }
|
|---|
| 22 | }
|
|---|
| 23 | } |
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.