ToDTO() public method

public ToDTO ( ) : InfluenceRuleDTO
return CommeillFaut.DTOs.InfluenceRuleDTO
 public void AddInfluenceRule(InfluenceRule infrul)
 {
     InfluenceRules.Add(infrul.ToDTO());
 }
 public void EditInfluenceRule(InfluenceRule infrul)
 {
     InfluenceRules.Remove(InfluenceRules.Find(x => x.RuleName == infrul.RuleName));
     InfluenceRules.Add(infrul.ToDTO());
 }