blob: 680f67e2df0a4bed6169e30819e1f58d59927fce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package com.blog.web.mappers;
import com.blog.web.dto.ArticleDto;
import com.blog.web.models.Article;
public class ArticleMapper {
public static Article mapToArticle(ArticleDto articleDto) {
return new Article(articleDto);
}
public static ArticleDto mapToArticleDto(Article article) {
return new ArticleDto(article);
}
}
|