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); }
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); }
public static CustomerAction ToEntity(this CustomerActionModel model, CustomerAction destination) { return(model.MapTo(destination)); }
public static CustomerAction ToEntity(this CustomerActionModel model) { return(model.MapTo <CustomerActionModel, CustomerAction>()); }