Last active
August 29, 2015 14:21
-
-
Save komainu85/7ec2eb61f680956dc7b9 to your computer and use it in GitHub Desktop.
Entity Service Validation Model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.Linq; | |
using System.Web; | |
namespace MikeRobbins.EntityServiceDemo.Models | |
{ | |
public class NewsArticle : Sitecore.Services.Core.Model.EntityIdentity | |
{ | |
public string itemId { get; set; } | |
public string Title { get; set; } | |
public string Description { get; set; } | |
[NotPastDateAttribute(ErrorMessage ="Date must be in the future")] | |
public DateTime Date { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment