16c33979d5
Added update maintenance
27 lines
566 B
C#
27 lines
566 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Step.Attributes
|
|
{
|
|
public class PositiveNumberAttribute : ValidationAttribute
|
|
{
|
|
private double _val;
|
|
|
|
public PositiveNumberAttribute(double val)
|
|
{
|
|
_val = val;
|
|
}
|
|
|
|
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
|
|
{
|
|
|
|
|
|
return ValidationResult.Success;
|
|
}
|
|
}
|
|
}
|