Пример #1
0
        public int Insert(Domain.Models.Journal entity)
        {
            Journal entityToInsert = this.context.Journals.Create();

            this.mapper.Map(entity, entityToInsert);
            this.context.Journals.Add(entityToInsert);
            this.context.SaveChanges();
            return(entityToInsert.Id);
        }
Пример #2
0
 public void Update(Domain.Models.Journal entity)
 {
     throw new NotImplementedException();
 }