Exemple #1
0
 /// <summary>
 /// This method is used to update the user.
 /// </summary>
 public void UpdateGradeInMemory(Grade gradeUpdate)
 {
     InMemoryDatabaseSingleton.DatabaseInstance.Update(gradeUpdate);
 }
Exemple #2
0
        /// <summary>
        /// This method is used to update the grade name.
        /// </summary>
        /// <param name="score">This is the grade name.</param>
        public void UpdateGradeName(string score)
        {
            Grade Grade = InMemoryDatabaseSingleton.DatabaseInstance.SelectTopOne <Grade>(x => x.GradeScore == GradeScore);

            Grade.GradeScore = score;
        }