Files
slp-modular-cms/src/SlpModularCms.Modules.Offerings/Models/CreateOfferingRequest.cs
T

16 lines
606 B
C#

using System.ComponentModel.DataAnnotations;
namespace SlpModularCms.Modules.Offerings.Models;
public record CreateOfferingRequest(
[Required, MaxLength(100)] string Title,
[Required(AllowEmptyStrings = true), MaxLength(500)] string Description,
[Required, MaxLength(50)] string Price,
[Required(AllowEmptyStrings = true), MaxLength(100)] string PriceNote,
[Required, FeaturesValidation] List<string> Features,
[Required(AllowEmptyStrings = true), MaxLength(50)] string CtaLabel,
bool Featured = false,
[MaxLength(130)] string? Slug = null,
Guid? CategoryId = null
);