예제 #1
0
        public int Insert(Domain.Models.SubTransaction entity)
        {
            SubTransaction entityToInsert = this.context.SubTransactions.Create();

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