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