//Insert language to tabLanguage public int InsertLanguageTabLanguage(string Language) { try { return(_tabLanguageTableAdapter.InsertLanguage(Language)); } catch (Exception ex) { throw ex; } }
public int InsertLanguage(String languageName) { var languageTable = new UserData.TabLanguageDataTable(); var languageAdapter = new TabLanguageTableAdapter(); int rowCount = 0; if (languageName != null) { rowCount = languageAdapter.InsertLanguage(languageName); return(rowCount); } return(rowCount); }
// add new language row into Language table public bool IsLanguageInserted(LanguageDTO newLanguage) { try { // insert row using query tabLanguageTableAdapter.InsertLanguage(newLanguage.LanguageName); return(true); } catch (Exception e) { Console.WriteLine(e.Message); return(false); } }
/// <summary> /// Insert register into TabLanguage. /// </summary> /// <param name="languageName">string languageName</param> /// <returns>int rowsAffected</returns> /// <exception cref="ex">Exception</exception> public int InsertLanguage(string languageName) { try { return((int)_tabLanguageTableAdapter.InsertLanguage(languageName)); } catch (Exception ex) { //Error log simulate Console.WriteLine(ex.ToString()); Console.WriteLine(ex.GetBaseException().ToString()); throw; } }
public int InsertLanguage(String LanguageName) { return(languageTableAdapter.InsertLanguage(LanguageName)); }
public int InsertLanguage(string languagename) { return(languageTableAdapter.InsertLanguage(languagename)); }