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); }
//customer action public static CustomerReminderModel ToModel(this CustomerReminder entity) { return(entity.MapTo <CustomerReminder, CustomerReminderModel>()); }