public async Task <IViewComponentResult> InvokeAsync(Guid PropertyAttributeId, Guid PropertyId) { var model = new PropertyAttributeViewModel(); model.PropertyAttribute = PropertyAttributeService.ReturnSinglePropertyAttribute(PropertyAttributeId); model.PropertyId = PropertyId; ViewBag.EPCRating = new SelectList(EPCRatingService.GenerateDropDownList(), "Id", "EPCRatingName"); ViewBag.TenureType = new SelectList(TenureTypeService.GenerateDropDownList(), "Id", "TenureTypeName"); ViewBag.PropertyType = new SelectList(PropertyTypeService.GenerateDropDownList(), "Id", "PropertyTypeName"); return(View(model)); }