public PredicateModel() { Id = 0; Name = ""; Description = ""; Parent = null; }
public static Predicate Convert(PredicateModel predicate) { Predicate model = new Predicate(); model.Id = predicate.Id; model.Name = predicate.Name; model.Description = predicate.Description; if (predicate.Parent != null) { model.Parent = PredicateModel.Convert(predicate.Parent); } return(model); }