示例#1
0
        public int Insert(Domain.Models.Inventory entity)
        {
            Inventory entityToInsert = this.context.Inventories.Create();

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