public async Task <PartialViewResult> Content() { var settings = await _settingsService.Get <TeamCitySettings>(Const.PluginName); var builds = await _teamCityService.GetBuilds(settings.Url, settings.Username, settings.Password); var models = _buildMapper.Map(builds); return(PartialView(models)); }
public IList <ICEBuild> GetBuilds() { var builds = _service.GetBuilds(); return(TeamCityBuildAdapter.Translate(builds)); }