public static CustomerAction ToEntity(this CustomerActionModel model, CustomerAction destination, IDateTimeService dateTimeService)
        {
            var action = model.MapTo(destination);

            action.StartDateTimeUtc = model.StartDateTime.ConvertToUtcTime(dateTimeService);
            action.EndDateTimeUtc   = model.EndDateTime.ConvertToUtcTime(dateTimeService);
            return(action);
        }
Esempio n. 2
0
        public static CustomerAction ToEntity(this CustomerActionModel model, IDateTimeHelper dateTimeHelper)
        {
            var action = model.MapTo <CustomerActionModel, CustomerAction>();

            action.StartDateTimeUtc = model.StartDateTime.ConvertToUtcTime(dateTimeHelper);
            action.EndDateTimeUtc   = model.EndDateTime.ConvertToUtcTime(dateTimeHelper);
            return(action);
        }
Esempio n. 3
0
 public static CustomerAction ToEntity(this CustomerActionModel model, CustomerAction destination)
 {
     return(model.MapTo(destination));
 }
Esempio n. 4
0
 public static CustomerAction ToEntity(this CustomerActionModel model)
 {
     return(model.MapTo <CustomerActionModel, CustomerAction>());
 }