Example #1
0
        public static CustomerReminderModel ToModel(this CustomerReminder entity, IDateTimeHelper dateTimeHelper)
        {
            var reminder = entity.MapTo <CustomerReminder, CustomerReminderModel>();

            reminder.StartDateTime  = entity.StartDateTimeUtc.ConvertToUserTime(dateTimeHelper);
            reminder.EndDateTime    = entity.EndDateTimeUtc.ConvertToUserTime(dateTimeHelper);
            reminder.LastUpdateDate = entity.LastUpdateDate.ConvertToUserTime(dateTimeHelper);
            return(reminder);
        }
Example #2
0
 //customer action
 public static CustomerReminderModel ToModel(this CustomerReminder entity)
 {
     return(entity.MapTo <CustomerReminder, CustomerReminderModel>());
 }