Example #1
0
        public static IEnumerable <LocationModel> GetLocations(this IHasOwnerId user)
        {
            var db = new MembershipCashierDL.Access.LowLevelAccess();

            return(db.FindLocation(null, new OwnerVsLocationDiscriminator()
            {
                Filter = x => x.OwnerId == user.OwnerId
            }, null).Select(l => l.Location.ToLocationModel()));
        }
 public static void CopyTo(this IHasOwnerId from, IHasOwnerId to, bool allowDefaultValues = true)
 {
     to.OwnerId = from.OwnerId;
 }