being an abstract class, I add a Type property, show at Json

serialization (thought it could have been done automaticaly)
vnext
Paul Schneider 10 years ago
parent 1638d9747b
commit 83ac08cfd4
1 changed files with 2 additions and 0 deletions

@ -32,6 +32,8 @@ namespace SalesCatalog.Model
public Period CommandValidityDates { get; set; }
public abstract string[] GetSalesConditions();
public virtual string Type { get { return GetType().Name; }
}
}
}

Loading…