public Update GetUpdate(Guid packageId, Guid versionId, string clientSoftware, string clientCountry) { var package = _packageService.GetById(packageId); var version = _versionService.GetById(versionId); return(_filterService.FilterUpdates(package?.Updates?.ToList(), version, clientSoftware, clientCountry)); }
public IEnumerable <Data.Models.Version> GetAllForClient(Guid packageId, string clientSoftware, string clientCountry) { var package = _packageService.GetById(packageId, false); return(_filterService.FilterVersions(package?.Updates?.ToList(), clientSoftware, clientCountry)); }