using System; namespace Abp.Application.Services.Dto { /// /// This DTO can be directly used (or inherited) /// to pass an nullable Id value to an application service method. /// /// Type of the Id [Serializable] public class NullableIdDto where TId : struct { public TId? Id { get; set; } public NullableIdDto() { } public NullableIdDto(TId? id) { Id = id; } } /// /// A shortcut of for . /// [Serializable] public class NullableIdDto : NullableIdDto { public NullableIdDto() { } public NullableIdDto(int? id) : base(id) { } } }