public static List <StopDTO> ConvertEntityToModel(IEnumerable <Stop> stops) { var stopModelList = new List <StopDTO>(); foreach (var stop in stops) { stopModelList.Add(AutoMapperContainer.GenericConvert <StopDTO>(stop)); } return(stopModelList); }
public static TEntity UpdateEntityFromModel <TEntity, TModel>(TEntity entity, TModel model) { return(AutoMapperContainer.GenericConvert <TModel, TEntity>(model, entity)); }
public static TEntity ConvertModelToEntity <TEntity, TModel>(TModel model) { return(AutoMapperContainer.GenericConvert <TEntity>(model)); }
public static TModel ConvertEntityToModel <TEntity, TModel>(TEntity entity) { return(AutoMapperContainer.GenericConvert <TModel>(entity)); }
public static Stop ConvertModelToEntity(StopDTO stopModel) { return(AutoMapperContainer.GenericConvert <Stop>(stopModel)); }
public static Stop UpdateModel <T>(T model, Stop stop) { return(AutoMapperContainer.GenericConvert <T, Stop>(model, stop)); }
public static Stop ConvertModelToEntity <T>(T model) { return(AutoMapperContainer.GenericConvert <Stop>(model)); }
public static T ConvertEntityToModel <T>(Stop stop) { return(AutoMapperContainer.GenericConvert <T>(stop)); }
public static Stop ConvertUpdateModelToEntity(StopForUpdateDTO stopInput) { return(AutoMapperContainer.GenericConvert <Stop>(stopInput)); }
public static Stop ConvertCreationModelToEntity(StopForCreationDTO stopInput) { return(AutoMapperContainer.GenericConvert <Stop>(stopInput)); }
public static StopDTO ConvertEntityToModel(Stop stop) { return(AutoMapperContainer.GenericConvert <StopDTO>(stop)); }