|
| 1 | +using System; |
| 2 | +using System.Collections.Generic; |
| 3 | +using System.Linq; |
| 4 | +using System.Threading.Tasks; |
| 5 | + |
| 6 | +namespace TaskTable.DataTransferObjects.DtoAppUser |
| 7 | +{ |
| 8 | + // sonradan düzeltilecek yanlış bir yöntem |
| 9 | + public class AppUserDto |
| 10 | + { |
| 11 | + //[Required(ErrorMessage = "Kullanıcı adı boş geçilemez")] |
| 12 | + //[Display(Name = "Kullanıcı Adı")] |
| 13 | + //[DataType(DataType.EmailAddress)] |
| 14 | + //[EmailAddress(ErrorMessage ="Geçersiz eposta adresi")] |
| 15 | + //[Required(ErrorMessage = "Eposta boş geçilemez")] |
| 16 | + //[Display(Name = "Eposta")] |
| 17 | + //[DataType(DataType.Password)] |
| 18 | + //[Required(ErrorMessage = "Parola boş geçilemez")] |
| 19 | + //[Display(Name = "Parola")] |
| 20 | + //[DataType(DataType.Password)] |
| 21 | + //[Compare("Password", ErrorMessage = "Parolalar eşleşmiyor")] |
| 22 | + //[Display(Name = "Parolanızı tekrar giriniz")] |
| 23 | + //[Required(ErrorMessage = "İsim boş geçilemez")] |
| 24 | + //[Display(Name = "İsim")] |
| 25 | + //[Required(ErrorMessage = "Soyadı boş geçilemez")] |
| 26 | + //[Display(Name = "Soyadı")] |
| 27 | + public string UserName { get; set; } |
| 28 | + |
| 29 | + public string Email { get; set; } |
| 30 | + |
| 31 | + public string Password { get; set; } |
| 32 | + |
| 33 | + public string ConfirmPassword { get; set; } |
| 34 | + |
| 35 | + public string Name { get; set; } |
| 36 | + |
| 37 | + public string Surname { get; set; } |
| 38 | + } |
| 39 | +} |
0 commit comments