mirror of
https://github.com/chyzy/RSystem-MVC
synced 2024-12-24 10:05:28 +01:00
16 lines
434 B
C#
16 lines
434 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using RSystem.Models;
|
|
|
|
namespace RSystem.ViewModels
|
|
{
|
|
public class PeselViewModel
|
|
{
|
|
[Required(ErrorMessage = "Proszę podać PESEL.")]
|
|
[RegularExpression(@"^[0-9]{11}$",ErrorMessage = "PESEL powinien skladać się z 11 cyfr.")]
|
|
public string PESEL { get; set; }
|
|
}
|
|
} |