/// <summary> /// This method is used to update the user. /// </summary> public void UpdateeWelcomeMessageInMemory(WelcomeMessage welcomeMessageUpdate) { InMemoryDatabaseSingleton.DatabaseInstance.Update(welcomeMessageUpdate); }
/// <summary> /// This method is used to update the grade name. /// </summary> /// <param name="score">This is the grade name.</param> public void UpdateWelcomeMessageName(string message) { WelcomeMessage WelcomeMessage = InMemoryDatabaseSingleton.DatabaseInstance.SelectTopOne <WelcomeMessage>(x => x.Message == Message); WelcomeMessage.Message = message; }