Documentation & code cleanup

This commit is contained in:
Dimitar Byalkov
2023-06-09 11:51:42 +02:00
parent 0ac97bd31a
commit 1832e111e3
61 changed files with 140 additions and 325 deletions

View File

@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Models
{
@@ -25,13 +20,17 @@ namespace Models
{
get; set;
}
[Required]
[StringLength(255)]
public string Name
{
get; set;
}
[Required]
[DataType(DataType.Password)]
[StringLength(int.MaxValue, MinimumLength = 4)]
public string Password
{
get; set;