public static CustomerActionModel ToModel(this CustomerAction entity, IDateTimeService dateTimeService)
        {
            var action = entity.MapTo <CustomerAction, CustomerActionModel>();

            action.StartDateTime = entity.StartDateTimeUtc.ConvertToUserTime(dateTimeService);
            action.EndDateTime   = entity.EndDateTimeUtc.ConvertToUserTime(dateTimeService);
            return(action);
        }
Пример #2
0
 //customer action
 public static CustomerActionModel ToModel(this CustomerAction entity)
 {
     return(entity.MapTo <CustomerAction, CustomerActionModel>());
 }