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); }
public void Update(Domain.Models.Inventory entity) { throw new NotImplementedException(); }