protected void ValidateSlug(object source, ServerValidateEventArgs args) { if (Post.DoesSlugExist(args.Value)) { args.IsValid = false; } }
private bool DoesSlugAlreadyExist(string slug) { return(Post.DoesSlugExist(slug)); }