Ejemplo n.º 1
0
        public async Task <IViewComponentResult> InvokeAsync(int howMany)
        {
            IEnumerable <PropertyInfoModel> latest;

            try
            {
                latest = await _propertyViewModelService.GetLatest(howMany);
            }
            catch
            {
                latest = new List <PropertyInfoModel>();
            }

            return(View(latest));
        }