public ArticlesPrixPivot GetArticlesPrixPivot(long id) { var item = articlesRepository.GetById((int)id); ArticlesPrixPivot articlesPrixPivot = Mapper.Map <GES_ArticlesPrix, ArticlesPrixPivot>(item); return(articlesPrixPivot); }
public void UpdateArticlesPrixPivot(ArticlesPrixPivot articlesPrix) { articlesRepository.Update(Mapper.Map <ArticlesPrixPivot, GES_ArticlesPrix>(articlesPrix)); }
public void CreateArticlesPrixPivot(ArticlesPrixPivot articlesPrix) { GES_ArticlesPrix article = Mapper.Map <ArticlesPrixPivot, GES_ArticlesPrix>(articlesPrix); articlesRepository.Add(article); }
public void DeleteArticlesPrixPivot(ArticlesPrixPivot articlesPrix) { articlesRepository.Delete(articlesPrix.ArticlesPrixId, Mapper.Map <ArticlesPrixPivot, GES_ArticlesPrix>(articlesPrix)); }