internal int Update(Theme_DTO_Update dto, string userName) { var inputParams = new List <ADO_inputParams>() { new ADO_inputParams() { name = "@ThmCode", value = dto.ThmCode }, new ADO_inputParams() { name = "@ThmValue", value = dto.ThmValue }, new ADO_inputParams() { name = "@userName", value = userName } }; var returnParam = new ADO_returnParam() { name = "@ReturnVal", value = 0 }; var outParam = new ADO_outputParam() { name = "@ThmId", value = 0 }; ado.ExecuteNonQueryProcedure("System_Navigation_Theme_Update", inputParams, ref returnParam, ref outParam); return((int)outParam.value); }
/// <summary> /// Create and Update a SubjectLanguage /// </summary> /// <param name="dto"></param> /// <param name="Ado"></param> /// <returns></returns> internal int CreateOrUpdate(Theme_DTO_Update dto, ADO Ado) { ThemeLanguage_DTO themeLanguageDTO = new ThemeLanguage_DTO { ThmValue = dto.ThmValue, ThmCode = dto.ThmCode, LngIsoCode = dto.LngIsoCode }; ThemeLanguage_ADO themeLanguageADO = new ThemeLanguage_ADO(Ado); return(themeLanguageADO.CreateOrUpdate(themeLanguageDTO)); }