Esempio n. 1
0
        public int Insert(Domain.Models.Kek entity)
        {
            Kek entityToInsert = this.context.Keks.Create();

            this.mapper.Map(entity, entityToInsert);
            this.context.Keks.Add(entityToInsert);
            this.context.SaveChanges();
            return(entityToInsert.Id);
        }
Esempio n. 2
0
 public void Update(Domain.Models.Kek entity)
 {
     throw new NotImplementedException();
 }