public async Task <int> AddUpdateGenericComp(ComponentDetails comp) { List <SQLParam> param = new List <SQLParam>(); param.Add(new SQLParam("@ComponentId", comp.ComponentId)); param.Add(new SQLParam("@ComponentName", comp.ComponentName)); param.Add(new SQLParam("@JsonData", comp.JSONData)); param.Add(new SQLParam("@Label", comp.Label)); param.Add(new SQLParam("@SiteId", comp.SiteId)); SQLExecuteNonQueryAsync sql = new SQLExecuteNonQueryAsync(); return(await sql.ExecuteNonQueryAsync("usp_Webbuilder_GenericData_AddUpdate", param, "@Status")); }
public async Task <int> AddUpdateGeneticComp(ComponentDetails album) { GenericComponentDataProvider dataProvider = new GenericComponentDataProvider(); return(await dataProvider.AddUpdateGenericComp(album)); }