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.
Connected.Common.Types/Connected.Common.Types.Model/Countries/CountryArgs.cs

28 lines
539 B

2 years ago
using System.ComponentModel.DataAnnotations;
using Connected.Annotations;
2 years ago
using Connected.Data;
using Connected.ServiceModel;
2 years ago
namespace Connected.Common.Types.Countries;
2 years ago
public class InsertCountryArgs : Dto
{
[Required]
[MaxLength(128)]
public string Name { get; set; }
[MinValue(0)]
public int Lcid { get; set; }
[MaxLength(128)]
public string? IsoCode { get; set; }
public Status Status { get; set; } = Status.Enabled;
}
public class UpdateCountryArgs : InsertCountryArgs
{
[MinValue(1)]
public int Id { get; set; }
}