public static RevisionDto ToDto(this IRevision rev) { var dto = new RevisionDto { Id = rev.Id, Message = rev.Message, Author = rev.Author }; return(dto); }
public static Revision ToRevision(this RevisionDto dto) { var rev = new Revision { Id = dto.Id, Message = dto.Message, Author = dto.Author }; return(rev); }