Using YaStringLength and YaRequired

This commit is contained in:
Paul Schneider 2019-09-04 01:25:36 +01:00
commit 9457ba71d1
62 changed files with 396 additions and 150 deletions

View file

@ -1,35 +1,36 @@
using System.ComponentModel.DataAnnotations;
using Yavsc.Attributes.Validation;
namespace Yavsc.ViewModels.Manage
{
public class DoDirectCreditViewModel {
[Required]
[YaRequired]
public string PaymentType  { get; set;}
[Required]
[YaRequired]
public string PayerName  { get; set;}
[Required]
[YaRequired]
public string FirstName  { get; set;}
[Required]
[YaRequired]
public string LastName  { get; set;}
[Required]
[YaRequired]
public string CreditCardNumber  { get; set;}
public string CreditCardType  { get; set;}
public string Cvv2Number  { get; set;}
public string CardExpiryDate  { get; set;}
public string IpnNotificationUrl { get; set; }
[Required]
[YaRequired]
public string Street1 { get; set; }
public string Street2 { get; set; }
public string City { get; set; }
public string State { get; set; }
public string Country { get; set; }
[Required]
[YaRequired]
public string PostalCode { get; set; }
public string Phone { get; set; }
[Required]
[YaRequired]
public string CurrencyCode { get; set; }
[Required]
[YaRequired]
public string Amount { get; set; }
}
}