public virtual List <Point> GetPoints(int pid, bool aic, bool aoc, bool dic, bool doc) { var points = new List <Point>(); if (aic) { points.AddRange(_pointRepository.GetAIP(pid)); } if (aoc) { points.AddRange(_pointRepository.GetAOP(pid)); } if (dic) { points.AddRange(_pointRepository.GetDIP(pid)); } if (doc) { points.AddRange(_pointRepository.GetDOP(pid)); } return(points); }