示例#1
0
 /// <summary>
 /// Add a sSurname to the database
 /// </summary>
 /// <param name="newSurname">Text of the surname</param>
 /// <returns></returns>
 public Surname Add(Surname newSurname)
 {
     dbContext.Add(newSurname);
     return(newSurname);
 }
示例#2
0
 /// <summary>
 /// Adds a given name to the dataset
 /// </summary>
 /// <param name="newGivenName">The new given name to be added</param>
 /// <returns>The new given name added</returns>
 public GivenName Add(GivenName newGivenName)
 {
     dbContext.Add(newGivenName);
     return(newGivenName);
 }