internal async Task <int> UpdateComponents(BuilderComponent builderComponent) { try { List <SQLParam> sqlParam = new List <SQLParam> { new SQLParam("@ComponentName", builderComponent.ComponentName), new SQLParam("@ComponentValue", builderComponent.ComponentValue), new SQLParam("@ComponentViewValue", builderComponent.ComponentViewValue), new SQLParam("@Version", builderComponent.Version), new SQLParam("@UniversalComponentID", builderComponent.ComponentID), new SQLParam("@Type", builderComponent.Type) }; SQLExecuteNonQueryAsync sqlHelper = new SQLExecuteNonQueryAsync(); return(await sqlHelper.ExecuteNonQueryAsync("[usp_WebBuilder_ComponentInsert]", sqlParam, "@output")); } catch { throw; } }
public async Task <int> UpdateComponents(BuilderComponent builderComponent) { WebBuilderDataProvider objDataProvider = new WebBuilderDataProvider(); return(await objDataProvider.UpdateComponents(builderComponent)); }