You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
762 B
41 lines
762 B
using Connected.Annotations;
|
|
using Connected.Data;
|
|
using Connected.ServiceModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Common.Types.Currencies;
|
|
|
|
public class CurrencyInsertArgs : Dto
|
|
{
|
|
[Required]
|
|
[MaxLength(128)]
|
|
public string? Name { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(32)]
|
|
public string? Code { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(8)]
|
|
public string? Symbol { get; set; }
|
|
|
|
[MinValue(0)]
|
|
public int Lcid { get; set; }
|
|
|
|
public Status Status { get; set; } = Status.Enabled;
|
|
}
|
|
|
|
public sealed class CurrencyUpdateArgs : CurrencyInsertArgs
|
|
{
|
|
[MinValue(1)]
|
|
public int Id { get; set; }
|
|
}
|
|
|
|
public sealed class CurrencyFormatArgs : Dto
|
|
{
|
|
[Range(0, int.MaxValue)]
|
|
public int Currency { get; set; }
|
|
|
|
public double Value { get; set; }
|
|
}
|