Exemple #1
0
        public int Insert(Domain.Models.Categorie entity)
        {
            Categorie entityToInsert = this.context.Categories.Create();

            this.mapper.Map(entity, entityToInsert);
            this.context.Categories.Add(entityToInsert);
            this.context.SaveChanges();
            return(entityToInsert.Id);
        }
Exemple #2
0
 public void Update(Domain.Models.Categorie entity)
 {
     throw new NotImplementedException();
 }