Re-fabrication
This commit is contained in:
12
Yavsc.Server/Models/Forms/Form.cs
Normal file
12
Yavsc.Server/Models/Forms/Form.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Yavsc.Models.Forms
|
||||
{
|
||||
|
||||
public class Form
|
||||
{
|
||||
[Key]
|
||||
public string Id {get; set;}
|
||||
public string Summary { get; set; }
|
||||
}
|
||||
}
|
17
Yavsc.Server/Models/Forms/Validation/Method.cs
Normal file
17
Yavsc.Server/Models/Forms/Validation/Method.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Yavsc.Models.Forms.Validation
|
||||
{
|
||||
public class Method
|
||||
{
|
||||
[Key]
|
||||
public string Name {get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// TODO localisation ...
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Required]
|
||||
public string ErrorMessage { get; set; }
|
||||
}
|
||||
}
|
7
Yavsc.Server/Models/Forms/Validation/Required.cs
Normal file
7
Yavsc.Server/Models/Forms/Validation/Required.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace Yavsc.Models.Forms.Validation
|
||||
{
|
||||
public class Required : Method
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user