Beispiel #1
0
        protected override Location ExecuteProcedure()
        {
            Location location = LocationCommon.FindBy(_id, QueryLevel.Single);

            SetLocation(location);
            SaveTo(location);
            return(location);
        }
Beispiel #2
0
 private void SetParent(Location location)
 {
     if (this.ParentId != null)
     {
         var parent = LocationCommon.FindBy(this.ParentId.Value, QueryLevel.Single);
         if (!parent.IsEmpty())
         {
             location.Parent = parent;
         }
     }
 }