public object DownloadComponent([FromBody] BuilderComponent objBuilComponent) { SettingHelper settingHelper = new SettingHelper(_memoryCache); string version = settingHelper.GetCachedSettingValue(SettingKeys.Cbuilderversion); WebBuilderController cont = new WebBuilderController(_memoryCache); var resultobj = cont.InstallComponent(objBuilComponent.ComponentID, objBuilComponent.DownloadType, objBuilComponent.Version, GetUsername, objBuilComponent.SecureToken, version); WBCachehelper wBCachehelper = new WBCachehelper(_appLifetime); wBCachehelper.RemoveAllCachedFile(_webHostEnvironment); wBCachehelper.RecycleApplicationPool(); return(resultobj); }