Compare commits

..

No commits in common. "49ffbad759f7b25120af92ea9a56f56b292324e6" and "3396d73077d87ca7b8553089e4669e722e55fc2e" have entirely different histories.

1 changed files with 4 additions and 9 deletions

View File

@ -301,15 +301,10 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public decimal? LipidAngle { get; set; }
public decimal? Avg
{
get
{
var values = new[] { FirstData, SecondData, ThirdData };
var avg = values.Where(x => x.HasValue).Select(x => x.Value).DefaultIfEmpty(0).Average();
return avg;
}
}
public decimal? Avg { get {
return ( FirstData + SecondData + ThirdData) / 3;
} }
}