- using DotLiquid;
- namespace Jessica.Sample.Models
- {
- public class User : Drop
- {
- public int ID { get; set; }
- public string Username { get; set; }
- public override object BeforeMethod(string method)
- {
- if (method.ToUpper() == "ID")
- return ID.ToString();
- return base.BeforeMethod(method);
- }
- }
- }