public async Task <IViewComponentResult> InvokeAsync() { var model = new SiteAWSProperty(); var result = await _service.GetAWSPropertySettingsAsync(); if (result.Data != null) { model.aws_property_id = result.Data.aws_property_id; model.bucket_name = result.Data.bucket_name; model.access_key = result.Data.access_key; model.secret_key = result.Data.secret_key; model.base_url = result.Data.base_url; } return(await Task.FromResult((IViewComponentResult)View("Default", model))); }