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

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