1
0
mirror of https://github.com/chyzy/RSystem-MVC synced 2024-11-26 16:15:29 +01:00
RSystem-MVC-Fork/RSystem/ViewModels/PeselViewModel.cs
2018-04-17 11:20:49 +02:00

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; }
}
}