using Connected.Annotations; using Connected.ServiceModel; using System.ComponentModel.DataAnnotations; namespace Common.Types.TaxRates; /// /// The arguments class for methods. /// public class TaxRateArgs : Dto { /// /// The name. /// /// /// This is a required property with its max length of 128 characters. /// [Required] [MaxLength(128)] public string? Name { get; set; } /// /// The rate. /// /// /// This is a required property with it min value of 0. /// [MinValue(0)] public float Rate { get; set; } } /// /// The arguments used when inserting a new entity. /// This is only a markup class serving primary for validation distinction. /// public sealed class InsertTaxRateArgs : TaxRateArgs { } /// /// The arguments class used when updating entity. /// public class UpdateTaxRateArgs : TaxRateArgs { [MinValue(0)] public int Id { get; set; } }