Beispiel #1
0
 public User GetByName(string name)
 {
     return(XmlRoot
            .SelectSingleNode($"User[Name='{name}']")
            .Return(GetEntity, null));
 }
Beispiel #2
0
 public Product GetById(int productId)
 {
     return(XmlRoot
            .SelectSingleNode($"Product[Id='{productId.ToString()}']")
            .Return(GetEntity, null));
 }