public static void UpdateFrom(this ControlRisk threatRisk, Contracts.Risk.RiskReduce risk) { threatRisk.IsoImpact = risk.IsoImpact; threatRisk.IsoProbability = risk.IsoProbability; threatRisk.NsThreat = risk.NsThreat; threatRisk.NsValue = risk.NsValue; threatRisk.NsVulnerability = risk.NsVulnerability; threatRisk.Type = risk.Type; }
public static ControlRisk ToDataModel(this Contracts.Risk.RiskReduce risk) { return(new ControlRisk() { IsoImpact = risk.IsoImpact, IsoProbability = risk.IsoProbability, NsThreat = risk.NsThreat, NsValue = risk.NsValue, NsVulnerability = risk.NsVulnerability, Type = risk.Type, }); }