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);
        }
示例#4
0
 public void DeleteArticlesPrixPivot(ArticlesPrixPivot articlesPrix)
 {
     articlesRepository.Delete(articlesPrix.ArticlesPrixId, Mapper.Map <ArticlesPrixPivot, GES_ArticlesPrix>(articlesPrix));
 }