public TierChangeViewModel ToTierChangeViewModel(TierChange tierChange)
        {
            var tierChanges = new TierChangeViewModel
            {
                TierChangeId    = tierChange.Id,
                OldTier         = tierChange.OldTier,
                NewTier         = tierChange.NewTier,
                NumberOfFlights = tierChange.NumberOfFlights,
                NumberOfMiles   = tierChange.NumberOfMiles,
                Status          = tierChange.Status,
                ClientName      = tierChange.Client.Name
            };

            return(tierChanges);
        }
        public TierChange ToTierChange(TierChangeViewModel model, bool isNew)
        {
            var tier = new TierChange
            {
                Id              = isNew ? 0 : model.TierChangeId,
                UpdateDate      = DateTime.Now,
                OldTier         = model.OldTier,
                NewTier         = model.NewTier,
                NumberOfFlights = model.NumberOfFlights,
                NumberOfMiles   = model.NumberOfMiles,
                Status          = 1
            };

            return(tier);
        }