Convert2 rename to Convert

This commit is contained in:
Olga Nemt 2024-05-21 07:15:37 +03:00
parent 832489b9ac
commit 833c506325

View File

@ -240,7 +240,7 @@ public abstract class ChangeLogRepositoryAbstract<TDto, TEntity, TRequest> : ICh
.ThenBy(e => e.Obsolete)
.ThenBy(e => e.Id)
.ToListAsync(token);
var dtos = entities.Select(e => Convert2(e, offset));
var dtos = entities.Select(e => Convert(e, offset));
return dtos;
}
@ -275,7 +275,7 @@ public abstract class ChangeLogRepositoryAbstract<TDto, TEntity, TRequest> : ICh
return entity;
}
protected ChangeLogDto<TDto> Convert2(TEntity entity, TimeSpan offset)
protected ChangeLogDto<TDto> Convert(TEntity entity, TimeSpan offset)
{
var dto = entity.Adapt<ChangeLogDto<TDto>>();
dto.Creation = entity.Creation.ToOffset(offset);