protected override Location ExecuteProcedure() { Location location = LocationCommon.FindBy(_id, QueryLevel.Single); SetLocation(location); SaveTo(location); return(location); }
private void SetParent(Location location) { if (this.ParentId != null) { var parent = LocationCommon.FindBy(this.ParentId.Value, QueryLevel.Single); if (!parent.IsEmpty()) { location.Parent = parent; } } }